[D-runtime] [D-Programming-Language/druntime] 8e29e0: Add ClockType enum to core.time for issue# 13433.

GitHub via D-runtime d-runtime at puremagic.com
Wed Apr 29 19:31:32 PDT 2015


  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 at 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 at 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 at 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


More information about the D-runtime mailing list