
Tracks elapsed wall-clock time. More...
#include <rutz/stopwatch.h>

Public Member Functions | |
| stopwatch () | |
| Default constructor. | |
| void | restart () |
| Reset the start time to the current time. | |
| rutz::time | elapsed (const rutz::time &stop) const |
| Get the time elapsed between start and stop times. | |
| rutz::time | elapsed () const |
| Get the time elapsed between start and now. | |
Tracks elapsed wall-clock time.
Definition at line 45 of file stopwatch.h.
| rutz::stopwatch::stopwatch | ( | ) | [inline] |
| rutz::time rutz::stopwatch::elapsed | ( | ) | const [inline] |
Get the time elapsed between start and now.
Definition at line 62 of file stopwatch.h.
References rutz::time::wall_clock_now().
| rutz::time rutz::stopwatch::elapsed | ( | const rutz::time & | stop | ) | const [inline] |
Get the time elapsed between start and stop times.
Definition at line 56 of file stopwatch.h.
| void rutz::stopwatch::restart | ( | ) | [inline] |
Reset the start time to the current time.
Definition at line 52 of file stopwatch.h.
References rutz::time::wall_clock_now().
Referenced by stopwatch().
1.6.3