1234567891011121314151617181920212223 |
- #include "Stopwatch.h"
-
- Stopwatch::Stopwatch()
- {
- //ctor
- // Jan Potocki 2017-2019
- }
-
- void Stopwatch::start()
- {
- tstart = std::chrono::steady_clock::now();
- }
-
- void Stopwatch::stop()
- {
- tstop = std::chrono::steady_clock::now();
- measurement = tstop - tstart;
- }
-
- double Stopwatch::read()
- {
- return measurement.count();
- }
|