MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetUnixBuildTime

Function GetUnixBuildTime

trinity/RenderJob/TriStepRenderFps.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17char dateString[11];
18
19struct tm GetUnixBuildTime()
20{
21 auto nt_header = reinterpret_cast<const IMAGE_NT_HEADERS*>( reinterpret_cast<BYTE*>( &__ImageBase ) + __ImageBase.e_lfanew );
22 __time64_t t = nt_header->FileHeader.TimeDateStamp;
23 struct tm ptm;
24 _gmtime64_s( &ptm, &t );
25
26 return ptm;
27}
28
29const char* GetTime()
30{

Callers 2

GetTimeFunction · 0.85
GetDateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected