Lines Matching refs:ft
276 FILETIME ft; in GetSystemTime() local
277 ::GetSystemTimeAsFileTime(&ft); in GetSystemTime()
278 return Time::FromFiletime(ft); in GetSystemTime()
306 Time Time::FromFiletime(FILETIME ft) { in FromFiletime() argument
307 if (ft.dwLowDateTime == 0 && ft.dwHighDateTime == 0) { in FromFiletime()
310 if (ft.dwLowDateTime == std::numeric_limits<DWORD>::max() && in FromFiletime()
311 ft.dwHighDateTime == std::numeric_limits<DWORD>::max()) { in FromFiletime()
314 int64_t us = (static_cast<uint64_t>(ft.dwLowDateTime) + in FromFiletime()
315 (static_cast<uint64_t>(ft.dwHighDateTime) << 32)) / 10; in FromFiletime()
322 FILETIME ft; in ToFiletime() local
324 ft.dwLowDateTime = 0; in ToFiletime()
325 ft.dwHighDateTime = 0; in ToFiletime()
326 return ft; in ToFiletime()
329 ft.dwLowDateTime = std::numeric_limits<DWORD>::max(); in ToFiletime()
330 ft.dwHighDateTime = std::numeric_limits<DWORD>::max(); in ToFiletime()
331 return ft; in ToFiletime()
334 ft.dwLowDateTime = static_cast<DWORD>(us); in ToFiletime()
335 ft.dwHighDateTime = static_cast<DWORD>(us >> 32); in ToFiletime()
336 return ft; in ToFiletime()