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

Add first time getter.

This commit is contained in:
Bartosz Taudul
2023-03-03 21:37:10 +01:00
parent b89bfd44f1
commit c91b052c80
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -2173,6 +2173,13 @@ bool Worker::AreFramesUsed() const
return m_data.framesBase->frames.size() > 2;
}
int64_t Worker::GetFirstTime() const
{
if( m_data.frameOffset == 0 ) return 0;
assert( m_data.framesBase->frames.size() >= 2 );
return m_data.framesBase->frames[2].start;
}
int64_t Worker::GetFrameTime( const FrameData& fd, size_t idx ) const
{
if( fd.continuous )