mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Last time should never be zero.
This commit is contained in:
@@ -864,7 +864,8 @@ int64_t Worker::GetFrameTime( const FrameData& fd, size_t idx ) const
|
||||
}
|
||||
else
|
||||
{
|
||||
return m_data.lastTime == 0 ? 0 : m_data.lastTime - fd.frames.back();
|
||||
assert( m_data.lastTime != 0 );
|
||||
return m_data.lastTime - fd.frames.back();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user