You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
18 lines
409 B
C++
18 lines
409 B
C++
|
|
// Copyright 2011-2019 Molecular Matters GmbH, all rights reserved.
|
||
|
|
|
||
|
|
#include "LC_UtcTime.h"
|
||
|
|
#include "Windows/WindowsHWrapper.h"
|
||
|
|
|
||
|
|
|
||
|
|
uint64_t utcTime::GetCurrent(void)
|
||
|
|
{
|
||
|
|
FILETIME fileTime = {};
|
||
|
|
::GetSystemTimeAsFileTime(&fileTime);
|
||
|
|
|
||
|
|
ULARGE_INTEGER asLargeInteger = {};
|
||
|
|
asLargeInteger.LowPart = fileTime.dwLowDateTime;
|
||
|
|
asLargeInteger.HighPart = fileTime.dwHighDateTime;
|
||
|
|
|
||
|
|
return asLargeInteger.QuadPart;
|
||
|
|
}
|