Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCoding/Private/External/LC_UtcTime.cpp
Rolando Caloca 532adaa65c DR - Merging //UE4/Dev-Main@5531558 to Dev-Rendering (//UE4/Dev-Rendering)
#rb none
#rnx

[CL 5591014 by Rolando Caloca in Dev-Rendering branch]
2019-03-27 11:33:31 -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;
}