|
Cogs.Core
|
High-resolution performance timer. More...
#include <Timer.h>
Public Member Functions | |
| void | start () |
| void | stop () |
| int64_t | elapsedMicroseconds () |
| int64_t | elapsedMilliseconds () |
| double | elapsedSeconds () |
| void | setScale (int64_t s) |
| void | resetScale () |
| int64_t | getScale () const |
| TimePerf | scalePerfTime (TimePerf time) |
Static Public Member Functions | |
| static Timer | startNew () |
| static int64_t | currentTimeMicroseconds () |
| static int64_t | currentTimeMilliseconds () |
Private Attributes | |
| TimePerf | startTime = {} |
| TimePerf | stopTime = {} |
| int64_t | scale = 1000 |
| bool | running = false |
High-resolution performance timer.
Example:
|
inlinestatic |
|
inlinestatic |