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

Timestamp conversion might be temporarily unavailable.

This commit is contained in:
Bartosz Taudul
2021-05-23 20:32:09 +02:00
parent 233a0bb6d6
commit cfb6d0d2ae
2 changed files with 47 additions and 45 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ public:
int64_t ConvertTimeToTsc( int64_t timestamp ) const
{
assert( m_metadata->cap_user_time_zero );
if( !m_metadata->cap_user_time_zero ) return 0;
const auto time = timestamp - m_metadata->time_zero;
const auto quot = time / m_metadata->time_mult;
const auto rem = time % m_metadata->time_mult;