mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-16 22:05:34 +00:00
Merge pull request #1300 from slomp/slomp/c-api-get-time
Adding C API for Profiler::GetTime()
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user