Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCoding/Private/External/LC_UtcTime.cpp
Chris Gagnon 00f8b72a0b Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 5602170 by Chris Gagnon in Dev-Editor branch]
2019-03-27 15:03:08 -04:00

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;
}