time/FileTime: drop static
This commit is contained in:
parent
a265738528
commit
a8fc805594
@ -36,20 +36,20 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
static constexpr uint64_t
|
||||
constexpr uint64_t
|
||||
ConstructUint64(DWORD lo, DWORD hi) noexcept
|
||||
{
|
||||
return uint64_t(lo) | (uint64_t(hi) << 32);
|
||||
}
|
||||
|
||||
static constexpr time_t
|
||||
constexpr time_t
|
||||
FileTimeToTimeT(FILETIME ft) noexcept
|
||||
{
|
||||
return (ConstructUint64(ft.dwLowDateTime, ft.dwHighDateTime)
|
||||
- 116444736000000000) / 10000000;
|
||||
}
|
||||
|
||||
static inline std::chrono::system_clock::time_point
|
||||
inline std::chrono::system_clock::time_point
|
||||
FileTimeToChrono(FILETIME ft) noexcept
|
||||
{
|
||||
// TODO: eliminate the time_t roundtrip, preserve sub-second resolution
|
||||
@ -57,7 +57,7 @@ FileTimeToChrono(FILETIME ft) noexcept
|
||||
}
|
||||
|
||||
gcc_const
|
||||
static inline std::chrono::seconds
|
||||
inline std::chrono::seconds
|
||||
DeltaFileTimeS(FILETIME a, FILETIME b) noexcept
|
||||
{
|
||||
ULARGE_INTEGER a2, b2;
|
||||
|
Loading…
Reference in New Issue
Block a user