gencpp/base/dependencies/timing.hpp

20 lines
422 B
C++
Raw Normal View History

#ifdef GEN_INTELLISENSE_DIRECTIVES
# pragma once
# include "filesystem.hpp"
#endif
#pragma region Timing
2023-07-24 18:19:37 -04:00
#ifdef GEN_BENCHMARK
//! Return CPU timestamp.
GEN_API u64 read_cpu_time_stamp_counter( void );
2023-07-24 18:19:37 -04:00
//! Return relative time (in seconds) since the application start.
GEN_API f64 time_rel( void );
2023-07-24 18:19:37 -04:00
//! Return relative time since the application start.
GEN_API u64 time_rel_ms( void );
2023-07-24 18:19:37 -04:00
#endif
#pragma endregion Timing