MCPcopy Create free account
hub / github.com/SickleSec/GhostWolf / PrintTimeStamp

Function PrintTimeStamp

Ghostwolf/Application.cpp:263–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void PrintTimeStamp(int64_t timeStamp) {
264 ULONGLONG fileTimeTicks = timeStamp * 10;
265
266 FILETIME fileTime;
267 fileTime.dwLowDateTime = static_cast<DWORD>(fileTimeTicks & 0xFFFFFFFF);
268 fileTime.dwHighDateTime = static_cast<DWORD>(fileTimeTicks >> 32);
269
270 SYSTEMTIME systemTime;
271 FileTimeToSystemTime(&fileTime, &systemTime);
272
273 PRINT("%04hu-%02hu-%02hu %02hu:%02hu:%02hu\n",
274 systemTime.wYear, systemTime.wMonth, systemTime.wDay,
275 systemTime.wHour, systemTime.wMinute, systemTime.wSecond);
276}
277
278int64_t AdjustToMilliseconds(int64_t ts) {
279 if (ts >= 1000000000000000LL) {

Callers 2

PrintValuesChromeFunction · 0.85
PrintValuesEdgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected