#include <time.h>
Public Methods | |
| Stopwatch () | |
| void | reset () |
| void | start () |
| void | stop () |
| double | total () const |
Public Attributes | |
| double | accumulator |
| double | timestamp |
|
|
|
|
|
Clears accumulated time and starts running. |
|
|
Restarts the accumulation of time. If this stopwatch is already running, then this method throws away all time since that last start, but retains any time accumulated before that start. |
|
|
Updates total time and then effectively calls start() |
|
|
|
|
|
|
|
|
|
1.2.18