summaryrefslogtreecommitdiffstats
path: root/generic/gettime.c
Commit message (Collapse)AuthorAgeFilesLines
* Make header sort order consistent againBenny Baumann2023-05-241-0/+1
|
* Add a fix to use gettimeofday if monotonic is not available.Lutz Mader2021-11-281-2/+6
|
* Update license headers to explicitly say GPLv2+Daniel Lange2021-09-221-1/+1
|
* Align descriptive commentsBenny Baumann2021-07-151-1/+1
|
* Fix typo in Generic_gettime_realtime on old MacBenny Baumann2021-07-011-1/+1
| | | | Fixes #673
* platform-dependent files included relative to main source directorymayurdahibhate2021-05-101-2/+2
|
* Request the realtime and monotonic clock times once per sampleNathan Scott2021-04-051-0/+57
Refactor the sample time code to make one call to gettimeofday (aka the realtime clock in clock_gettime, when available) and one to the monotonic clock. Stores each in more appropriately named ProcessList fields for ready access when needed. Every platform gets the opportunity to provide their own clock code, and the existing Mac OS X specific code is moved below darwin instead of in Compat. A couple of leftover time(2) calls are converted to use these ProcessList fields as well, instead of yet again sampling the system clock. Related to https://github.com/htop-dev/htop/pull/574

© 2014-2024 Faster IT GmbH | imprint | privacy policy