Add a microsecond timer from the start of the process

This commit is contained in:
baldurk committed 2017-11-03 16:22:59 +00:00
1 parent 6937756618
commit 834edf0dc2
2 files changed
+7

No files matched your search

+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: