4 #if defined(WIN32) || defined(WIN64) 102 void start(
const std::string& tag =
"");
124 uint64_t
stop(
bool printMessage=
true, FILE* printFile=NULL);
146 uint64_t
lap(
const std::string& tag =
"");
174 uint64_t
getLapTime(
const std::string& tag)
const;
220 void print(FILE* fileStream=NULL)
const;
229 #endif // STOPWATCH_H void print(FILE *fileStream=NULL) const
Prints a summary to file or console.
Utility to measure script execution time (wall-clock time) in milliseconds.
~Stopwatch()
Stopwatch destructor.
uint64_t getLapTime(const std::string &tag) const
Looks up the execution time of a lap by its tag.
uint64_t lap(const std::string &tag="")
Ends the current lap and starts a new lap.
uint64_t stop(bool printMessage=true, FILE *printFile=NULL)
Stops the timer.
void reset()
Resets the timer.
void start(const std::string &tag="")
Starts/restarts the timer.
Stopwatch(bool startTimer=true)
Utility to measure script execution time (wall-clock time) in milliseconds.