Files
PWrPEA2plus/Stopwatch.cpp
T
2019-11-17 21:02:29 +01:00

24 lines
337 B
C++
Executable File

#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();
}