Initial commit
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#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();
|
||||
}
|
||||
Reference in New Issue
Block a user