summaryrefslogtreecommitdiff
path: root/src/system/Clock.cxx
AgeCommit message (Collapse)Author
2017-12-12*: check defined(_WIN32) instead of defined(WIN32)Max Kellermann
Only _WIN32 is defined by the compiler, and WIN32 is not standardized and may be missing. Closes #169
2017-01-03update copyright yearMax Kellermann
2016-12-28system/Clock: remove obsolete MonotonicClock*() functionsMax Kellermann
We're using std::chrono::steady_clock now. No need to duplicate code.
2016-02-26update copyright year to 2016Max Kellermann
2015-01-29Merge branch 'v0.19.x'Max Kellermann
2015-01-29Avoid integer overflow in MonotonicClock{S,MS,US}PHO
This is Darwin specific: the previous implementation was causing an integer overflow when base.numer is very large. On PPC Darwin, the timebase info is 1000000000/33330116 and this is too large for integer arithmetic.
2015-01-01Copyright year 2015Max Kellermann
2014-01-13copyright year 2014Max Kellermann
2013-11-29Clock.cxx: provide all arguments for GetProcessTimesDenis Krjuchkov
All parameters seem mandatory, otherwise this call makes MPD crash.
2013-11-24Stats: use monotonic clock instead of GTimerMax Kellermann
Reduce GLib usage.
2013-11-24Stats: use GetProcessTimes() on WIN32 to determine MPD uptimeMax Kellermann
Don't use GTimer if the operating system is able to tell us the uptime.
2013-10-15system/clock: convert to C++Max Kellermann