aboutsummaryrefslogtreecommitdiffstats
path: root/src/system/Clock.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-01-29Avoid integer overflow in MonotonicClock{S,MS,US}PHO1-6/+6
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.
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-11-29Clock.cxx: provide all arguments for GetProcessTimesDenis Krjuchkov1-2/+2
All parameters seem mandatory, otherwise this call makes MPD crash.
2013-11-24Stats: use monotonic clock instead of GTimerMax Kellermann1-0/+22
Reduce GLib usage.
2013-11-24Stats: use GetProcessTimes() on WIN32 to determine MPD uptimeMax Kellermann1-0/+26
Don't use GTimer if the operating system is able to tell us the uptime.
2013-10-15system/clock: convert to C++Max Kellermann1-4/+4
2013-08-07Makefile.am: move sources to libsystem.aMax Kellermann1-0/+0
2013-02-27clock: fix usec-to-usec factorHagen Fritsch1-1/+1
2013-02-27clock: add missing includeHagen Fritsch1-0/+3
2012-08-14timer: use monotonic clock if availableMax Kellermann1-0/+95