April 29, 2015 [D-runtime] [D-Programming-Language/druntime] 8e29e0: Add ClockType enum to core.time for issue# 13433. | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/druntime Commit: 8e29e0621b074a8d368b4d7d344281adb7a91e54 https://github.com/D-Programming-Language/druntime/commit/8e29e0621b074a8d368b4d7d344281adb7a91e54 Author: Jonathan M Davis <jmdavisProg@gmx.com> Date: 2015-04-28 (Tue, 28 Apr 2015) Changed paths: M src/core/time.d Log Message: ----------- Add ClockType enum to core.time for issue# 13433. 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). Commit: a69b0f6ad8c4146fad6d5484dde165599b9fe0d0 https://github.com/D-Programming-Language/druntime/commit/a69b0f6ad8c4146fad6d5484dde165599b9fe0d0 Author: Jonathan M Davis <jmdavisProg@gmx.com> Date: 2015-04-28 (Tue, 28 Apr 2015) Changed paths: M src/core/time.d Log Message: ----------- Remove redundant access modifiers. Commit: bcfc36b3ca5a229c751c972c607fee57d4febcb2 https://github.com/D-Programming-Language/druntime/commit/bcfc36b3ca5a229c751c972c607fee57d4febcb2 Author: Martin Nowak <code@dawg.eu> Date: 2015-04-30 (Thu, 30 Apr 2015) Changed paths: M src/core/time.d Log Message: ----------- Merge pull request #990 from jmdavis/13433 Add ClockType enum to core.time for issue# 13433. Compare: https://github.com/D-Programming-Language/druntime/compare/7632b47e1b44...bcfc36b3ca5a |
Copyright © 1999-2021 by the D Language Foundation