Initial commit

This commit is contained in:
Jan Potocki
2019-11-17 21:02:29 +01:00
commit bbc24df31f
16 changed files with 1623 additions and 0 deletions
Executable
+22
View File
@@ -0,0 +1,22 @@
#ifndef STOPWATCH_H
#define STOPWATCH_H
#include <chrono>
// Klasa do pomiaru czasu (wieloplatformowa)
// Jan Potocki 2017-2019
class Stopwatch
{
public:
Stopwatch();
void start();
void stop();
double read();
protected:
private:
std::chrono::duration<double> measurement;
std::chrono::time_point<std::chrono::steady_clock> tstart;
std::chrono::time_point<std::chrono::steady_clock> tstop;
};
#endif // STOPWATCH_H