2 #include "rawtime_private.h"
6 /// Returns the unixtime epoch as filetime
7 Msp::Time::RawTime get_epoch()
19 SystemTimeToFileTime(&st, &ft);
20 return (ft.dwLowDateTime+(static_cast<Msp::Time::RawTime>(ft.dwHighDateTime)<<32))/10;
28 RawTime filetime_to_rawtime(const FILETIME &ft)
30 static RawTime epoch = get_epoch();
32 return (ft.dwLowDateTime+(static_cast<RawTime>(ft.dwHighDateTime)<<32))/10-epoch;