Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Add ClockType enum to core.time for issue# 13433.
Browse files Browse the repository at this point in the history
This adds an enum for indicating which type of clock to use when it's
appropriate for a time function to have multiple options for the source
clock. In the case of MonoTime, to make that work cleanly, the
implementation of MonoTime has become MonoTimeImpl, templated on
ClockType, and MonoTime has become an alias to
MonoTimeImpl!(ClockType.normal). In the case of SysTime (in a separate
PR), that will a default template argument to Clock.currTime and SysTime
will be unaffected (because in MonoTime's case, the clock that it came
from is integral to the type, whereas in SysTime's case, it doesn't
matter after the SysTime has been initialized).
  • Loading branch information
jmdavis committed Apr 29, 2015
1 parent 18d57ff commit 8e29e06
Showing 1 changed file with 563 additions and 121 deletions.

0 comments on commit 8e29e06

Please sign in to comment.