- cleanup old non-used code + migration to std::chrono

This commit is contained in:
2026-04-20 22:09:44 +03:00
parent 6caabf285c
commit cfdf1a0c77
5 changed files with 82 additions and 55 deletions
+4 -4
View File
@@ -54,10 +54,10 @@ class chronox
{
public:
// Returns current timestamp in milliseconds
static uint64_t getTimestamp();
static std::chrono::milliseconds getTimestamp();
// Returns uptime (of calling process) in milliseconds
static uint64_t getUptime();
static std::chrono::milliseconds getUptime();
// Finds time delta between 'later' and 'earlier' time points.
// Handles cases when clock is wrapped.
@@ -75,9 +75,9 @@ public:
{
public:
ExecutionTime();
uint64_t getSpentTime() const;
std::chrono::milliseconds getSpentTime() const;
protected:
uint64_t mStart;
std::chrono::milliseconds mStart;
};
};