2023-08-28 23:46:50 -04:00
|
|
|
#ifdef GEN_INTELLISENSE_DIRECTIVES
|
|
|
|
# pragma once
|
|
|
|
# include "filesystem.hpp"
|
|
|
|
#endif
|
2023-08-21 20:30:13 -04:00
|
|
|
|
2023-07-25 23:00:57 -04:00
|
|
|
#pragma region Timing
|
|
|
|
|
2024-12-05 02:53:14 -05:00
|
|
|
GEN_API_C_BEGIN
|
|
|
|
|
2023-07-24 18:19:37 -04:00
|
|
|
#ifdef GEN_BENCHMARK
|
|
|
|
//! Return CPU timestamp.
|
|
|
|
u64 read_cpu_time_stamp_counter( void );
|
|
|
|
|
|
|
|
//! Return relative time (in seconds) since the application start.
|
|
|
|
f64 time_rel( void );
|
|
|
|
|
|
|
|
//! Return relative time since the application start.
|
|
|
|
u64 time_rel_ms( void );
|
|
|
|
#endif
|
2023-07-25 23:00:57 -04:00
|
|
|
|
2024-12-05 02:53:14 -05:00
|
|
|
GEN_API_C_END
|
|
|
|
|
2023-07-25 23:00:57 -04:00
|
|
|
#pragma endregion Timing
|