Add a microsecond timer from the start of the process

This commit is contained in:
baldurk
2017-09-26 19:09:52 +01:00
parent 6937756618
commit 834edf0dc2
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -41,6 +41,10 @@ public:
{
return double(Timing::GetTick() - m_Start) / m_CounterFrequency;
}
double GetMicroseconds() const
{
return (double(Timing::GetTick() - m_Start) * 1000.0) / m_CounterFrequency;
}
void Restart() { m_Start = Timing::GetTick(); }
private: