mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +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:
|
||||
|
||||
@@ -205,6 +205,7 @@ public:
|
||||
void Initialise();
|
||||
void Shutdown();
|
||||
|
||||
uint64_t GetMicrosecondTimestamp() { return uint64_t(m_Timer.GetMicroseconds()); }
|
||||
const GlobalEnvironment GetGlobalEnvironment() { return m_GlobalEnv; }
|
||||
void ProcessGlobalEnvironment(GlobalEnvironment env, const std::vector<std::string> &args);
|
||||
|
||||
@@ -450,6 +451,8 @@ private:
|
||||
Threading::CriticalSection m_SingleClientLock;
|
||||
string m_SingleClientName;
|
||||
|
||||
PerformanceTimer m_Timer;
|
||||
|
||||
static void TargetControlServerThread(Network::Socket *sock);
|
||||
static void TargetControlClientThread(Network::Socket *client);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user