r5sdk/r5dev/tier0/platform.cpp
Kawe Mazidjatari 0de09217bc Log process uptime
Log actual process uptime in all (post init) loggers.
The actual process uptime is obtained from the engine (Plat_FloatTime()).
2022-06-20 15:48:33 +02:00

20 lines
317 B
C++

#include "core/stdafx.h"
#include "tier0/platform_internal.h"
double Plat_FloatTime()
{
return v_Plat_FloatTime();
}
uint64_t Plat_MSTime()
{
return v_Plat_MSTime();
}
const char* Plat_GetProcessUpTime()
{
static char szBuf[4096];
sprintf_s(szBuf, sizeof(szBuf), "[%.3f] ", Plat_FloatTime());
return szBuf;
}