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

Split View navigation functions.

This commit is contained in:
Bartosz Taudul
2022-07-02 13:16:06 +02:00
parent 5b8c8c5309
commit d19b337573
6 changed files with 145 additions and 134 deletions
+7
View File
@@ -718,4 +718,11 @@ const char* View::SourceSubstitution( const char* srcFile ) const
return res.c_str();
}
int64_t View::AdjustGpuTime( int64_t time, int64_t begin, int drift )
{
if( time < 0 ) return time;
const auto t = time - begin;
return time + t / 1000000000 * drift;
}
}