Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Dec 22, 2017
1 parent a255c87 commit 17317af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/crystal/system/win32/time.cr
Expand Up @@ -20,6 +20,8 @@ module Crystal::System::Time
end

def self.compute_utc_seconds_and_nanoseconds : {Int64, Int32}
# TODO: Needs a check if `GetSystemTimePreciseAsFileTime` is actually available (only >= Windows 8)
# and use `GetSystemTimeAsFileTime` as fallback.
LibC.GetSystemTimePreciseAsFileTime(out filetime)
since_epoch = (filetime.dwHighDateTime.to_u64 << 32) | filetime.dwLowDateTime.to_u64

Expand Down

0 comments on commit 17317af

Please sign in to comment.