Merge pull request #1300 from slomp/slomp/c-api-get-time

Adding C API for Profiler::GetTime()
This commit is contained in:
Bartosz Taudul
2026-03-06 12:18:05 +01:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -5079,6 +5079,11 @@ TRACY_API void ___tracy_end_sampling_profiling( void ) {
tracy::EndSamplingProfiling();
}
TRACY_API int64_t ___tracy_get_time( void )
{
return tracy::Profiler::GetTime();
}
#ifdef __cplusplus
}
#endif

View File

@@ -392,6 +392,8 @@ TRACY_API void ___tracy_fiber_leave( void );
# define TracyCFiberLeave ___tracy_fiber_leave();
#endif
TRACY_API int64_t ___tracy_get_time();
#endif
#ifdef __cplusplus