![]() |
Deepity
Ultra-fast, SIMD-accelerated Predictive Coding
|
Implementation by Alex: https://www.learncpp.com/cpp-tutorial/timing-your-code/. More...
#include <Timer.h>
Public Member Functions | |
| void | reset () |
| Restarts the stopwatch from now. | |
| double | elapsed () const |
| Seconds elapsed since construction or the last reset(). | |
Implementation by Alex: https://www.learncpp.com/cpp-tutorial/timing-your-code/.
A minimal stopwatch: construct or reset() it, then read elapsed() at any later point for the number of seconds since.
|
inline |
Seconds elapsed since construction or the last reset().
|
inline |
Restarts the stopwatch from now.