• Max Kellermann's avatar
    time/FileTime: preserve the FILETIME resolution · 45354a42
    Max Kellermann authored
    Don't truncate the FILETIME to second resolution to pass it to
    std::chrono::system_clock::from_time_t(); instead, calculate the
    offset between the FILETIME epoch and the
    std::system_clock::time_point epoch, and use that to initialize the
    time_point directly.
    45354a42
FileTime.hxx 3.5 KB