#include <Timing.h>
Definition at line 10 of file Timing.h.
◆ Timer()
Definition at line 12 of file Timing.h.
12: startTime(std::chrono::high_resolution_clock::now()), isStopped(false) {}
◆ getMicroseconds()
U64 Timing::Timer::getMicroseconds |
( |
| ) |
|
|
inline |
Definition at line 14 of file Timing.h.
15 {
16 if(!isStopped) {
stop(); }
17 return std::chrono::duration_cast<std::chrono::microseconds>(endTime - startTime).count();
18 }
◆ getMilliseconds()
F64 Timing::Timer::getMilliseconds |
( |
| ) |
|
|
inline |
◆ getSeconds()
F64 Timing::Timer::getSeconds |
( |
| ) |
|
|
inline |
◆ stop()
void Timing::Timer::stop |
( |
| ) |
|
|
inline |
Definition at line 13 of file Timing.h.
13{ endTime = std::chrono::high_resolution_clock::now(); }
The documentation for this struct was generated from the following file:
- libraries/wasm-jit/Include/Inline/Timing.h