1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +08:00

Add Plat_IsInTestMode() for tier0.

This commit is contained in:
Scott Ehlert
2014-03-04 14:43:24 -06:00
parent 8c5e815276
commit 82969bfa84

View File

@ -1087,6 +1087,9 @@ inline void SwapFloat( float *pOut, const float *pIn ) { SafeSwapFloat( pOut, p
PLATFORM_INTERFACE void Plat_SetBenchmarkMode( bool bBenchmarkMode ); PLATFORM_INTERFACE void Plat_SetBenchmarkMode( bool bBenchmarkMode );
PLATFORM_INTERFACE bool Plat_IsInBenchmarkMode(); PLATFORM_INTERFACE bool Plat_IsInBenchmarkMode();
// Returns true if running in test mode.
// Test mode is turned on if -testmode is on the command line or the VALVE_TESTMODE environment variable is defined.
PLATFORM_INTERFACE bool Plat_IsInTestMode();
PLATFORM_INTERFACE double Plat_FloatTime(); // Returns time in seconds since the module was loaded. PLATFORM_INTERFACE double Plat_FloatTime(); // Returns time in seconds since the module was loaded.
PLATFORM_INTERFACE uint32 Plat_MSTime(); // Time in milliseconds. PLATFORM_INTERFACE uint32 Plat_MSTime(); // Time in milliseconds.