Initial commit: Final state of the master project
This commit is contained in:
20
Research/core/Util/Stopwatch.cpp
Normal file
20
Research/core/Util/Stopwatch.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "Stopwatch.h"
|
||||
|
||||
Stopwatch::Stopwatch()
|
||||
{
|
||||
Reset();
|
||||
}
|
||||
|
||||
Stopwatch::~Stopwatch()
|
||||
{
|
||||
}
|
||||
|
||||
void Stopwatch::Reset()
|
||||
{
|
||||
begin = clock();
|
||||
}
|
||||
|
||||
double Stopwatch::GetTime()
|
||||
{
|
||||
return double(clock() - begin) / CLOCKS_PER_SEC;
|
||||
}
|
||||
Reference in New Issue
Block a user