Store profiling start time.

This commit is contained in:
Bartosz Taudul 2017-09-10 20:14:16 +02:00
parent 5964a6864c
commit 6a7fdea6fd
2 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,8 @@ static inline int64_t GetTime()
static Profiler* s_instance = nullptr;
Profiler::Profiler()
: m_shutdown( false )
: m_timeBegin( GetTime() )
, m_shutdown( false )
, m_id( 0 )
{
assert( PointerCheckA == PointerCheckB );

View File

@ -25,6 +25,7 @@ public:
private:
void Worker();
int64_t m_timeBegin;
std::thread m_thread;
std::atomic<bool> m_shutdown;
moodycamel::ConcurrentQueue<QueueItem> m_queue;