MLIB
Loading...
Searching...
No Matches
mlib::stopwatch Class Reference

Simple stopwatch timer (yet another one!) More...

#include <stopwatch.h>

Public Member Functions

void start ()
 Start the stopwatch.
 
void stop ()
 Stop the stopwatch.
 
std::chrono::steady_clock::duration lap ()
 Return elapsed time from start.
 
std::chrono::steady_clock::duration end ()
 Return total duration.
 
double lap_msec ()
 Return number of milliseconds elapsed from start.
 
double end_msec ()
 Return total duration in milliseconds between start and stop.
 

Detailed Description

Simple stopwatch timer (yet another one!)

Member Function Documentation

◆ lap()

std::chrono::steady_clock::duration mlib::stopwatch::lap ( )
inline

Return elapsed time from start.

The stopwatch continues to run

◆ lap_msec()

double mlib::stopwatch::lap_msec ( )
inline

Return number of milliseconds elapsed from start.

The stopwatch continues to run


The documentation for this class was generated from the following file: