1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Hide GetTime() in Profiler.

This commit is contained in:
Bartosz Taudul
2017-09-23 21:09:46 +02:00
parent c0b1846a35
commit bd9ffc16b5
3 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -13,13 +13,13 @@ class ScopedZone
{
public:
ScopedZone( const char* file, const char* function, uint32_t line )
: m_id( Profiler::ZoneBegin( QueueZoneBegin { GetTime(), (uint64_t)file, (uint64_t)function, line, GetThreadHandle() } ) )
: m_id( Profiler::ZoneBegin( QueueZoneBegin { Profiler::GetTime(), (uint64_t)file, (uint64_t)function, line, GetThreadHandle() } ) )
{
}
~ScopedZone()
{
Profiler::ZoneEnd( m_id, QueueZoneEnd { GetTime() } );
Profiler::ZoneEnd( m_id, QueueZoneEnd { Profiler::GetTime() } );
}
private: