mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-13 11:07:08 +00:00
Add a microsecond timer from the start of the process
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user