mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Log actual process uptime in all (post init) loggers. The actual process uptime is obtained from the engine (Plat_FloatTime()).
20 lines
317 B
C++
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;
|
|
} |