Initial commit: Final state of the master project
This commit is contained in:
17
Research/core/Util/Stopwatch.h
Normal file
17
Research/core/Util/Stopwatch.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
#include <ctime>
|
||||
|
||||
class Stopwatch
|
||||
{
|
||||
public:
|
||||
Stopwatch();
|
||||
~Stopwatch();
|
||||
|
||||
void Reset();
|
||||
// Returns the time in seconds
|
||||
double GetTime();
|
||||
|
||||
private:
|
||||
clock_t begin;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user