#include "system/Timer.h"
#include <atomic>
#include <iomanip>
#include <mutex>
#include <thread>
Go to the source code of this file.
◆ getFormattedTime()
std::string getFormattedTime |
( |
const int64_t |
time | ) |
|
Returns the human-readable formatted time in suitable units.
- Parameters
-
Definition at line 169 of file Timer.cpp.
◆ makeTimer()
Creates timer with given interval and callback when time interval is finished.
The callback is executed only once by default, or periodically if TimerFlags::PERIODIC flag is passed. If the timer is destroyed before the interval passes, no callback is called.
Definition at line 97 of file Timer.cpp.
◆ DAY
const int64_t DAY = 24 * HOUR |
◆ HOUR
const int64_t HOUR = 60 * MINUTE |
◆ MINUTE
const int64_t MINUTE = 60 * SECOND |
◆ SECOND
const int64_t SECOND = 1000 |
- Todo:
- can be improved after units are introduced into the code
Definition at line 164 of file Timer.cpp.