48 startMark = std::chrono::high_resolution_clock::now();
53 startMark = std::chrono::high_resolution_clock::now();
59 chrono_t endMark = std::chrono::high_resolution_clock::now();
69 using chrono_t = std::chrono::high_resolution_clock::time_point;
78 chrono_t endMark = std::chrono::high_resolution_clock::now();
uint64_t elapsed
Definition stopwatch.hpp:72
void reset()
Definition stopwatch.hpp:42
double getElapsed() const
Definition stopwatch.hpp:65
void start()
Definition stopwatch.hpp:46
void stop()
Definition stopwatch.hpp:57
chrono_t startMark
Definition stopwatch.hpp:71
void restart()
Definition stopwatch.hpp:52
uint64_t getElapsedNanosec() const
Definition stopwatch.hpp:75
std::chrono::nanoseconds sw_unit
Definition stopwatch.hpp:70
bool isRunning
Definition stopwatch.hpp:73
Stopwatch(bool startNow=false)
Definition stopwatch.hpp:36
std::chrono::high_resolution_clock::time_point chrono_t
Definition stopwatch.hpp:69
unsigned __int64 uint64_t
Definition stdint.h:136