[phobos] [D-Programming-Language/phobos] 5f3c6f: Implement issue 13433: coarser realtime clock

GitHub via phobos phobos at puremagic.com
Mon Jun 29 11:40:58 PDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 5f3c6f1a647c83247aea8811184d2b93f5147b46
      https://github.com/D-Programming-Language/phobos/commit/5f3c6f1a647c83247aea8811184d2b93f5147b46
  Author: jmdavis <jmdavisProg at gmx.com>
  Date:   2015-06-08 (Mon, 08 Jun 2015)

  Changed paths:
    M std/datetime.d

  Log Message:
  -----------
  Implement issue 13433: coarser realtime clock

This adds an option for getting the time using an alternative clock
chosen via core.time.ClockType, including access to a coarser clock as
requested by issue# 13433.

For ClockType.normal, the normal clock which has always been used is
used.

For ClockType.coarse, a faster clock is used if available even if it's
coarser so long as it still has sub-second precision, and the normal
clock is used if no such clock is available.

For ClockType.precise, a more precise clock is used if available
(currently only on FreeBSD), otherwise the normal clock is used.

For ClockType.second, a faster clock is used which only has second
precision. If no such clock is available, then the normal clock is used,
but the result is truncated to second precision.


  Commit: 14330724fd4a24bea22c807310e7b46fa9167327
      https://github.com/D-Programming-Language/phobos/commit/14330724fd4a24bea22c807310e7b46fa9167327
  Author: Dmitry Olshansky <dmitry.olsh at gmail.com>
  Date:   2015-06-29 (Mon, 29 Jun 2015)

  Changed paths:
    M std/datetime.d

  Log Message:
  -----------
  Merge pull request #2584 from jmdavis/13433

Implement issue 13433 - add option for using coarser realtime clock.


Compare: https://github.com/D-Programming-Language/phobos/compare/5faa1ccfc1ad...14330724fd4a


More information about the phobos mailing list