htop/linux
Nathan Scott 356488aa53 Request the realtime and monotonic clock times once per sample
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
2021-04-05 23:41:07 +02:00
..
HugePageMeter.c Save text buffer in Meter 2021-03-04 23:57:45 +01:00
HugePageMeter.h Linux: handle hugepages 2021-01-19 18:06:48 +01:00
IOPriority.h Enclose macro arguments in parentheses 2020-10-28 19:57:10 +01:00
IOPriorityPanel.c Panel_new: reorder arguments 2021-01-04 23:12:43 +01:00
IOPriorityPanel.h Make all required includes explicit 2020-10-18 20:09:05 +02:00
LibSensors.c Correct spelling in comment 2021-03-24 19:27:57 +01:00
LibSensors.h Handle absence of package CPU temperature 2020-12-14 21:07:07 +01:00
LinuxProcess.c LinuxProcess: Drop dead assignment 2021-03-02 22:37:47 +01:00
LinuxProcess.h Fix a couple of small spelling mistakes in comments 2021-02-15 12:54:20 +11:00
LinuxProcessList.c Request the realtime and monotonic clock times once per sample 2021-04-05 23:41:07 +02:00
LinuxProcessList.h Linux: overhaul memory partition 2021-02-07 12:41:52 +01:00
Platform.c Linux: handle garbage in /proc/loadavg 2021-03-28 19:20:28 +02:00
Platform.h Request the realtime and monotonic clock times once per sample 2021-04-05 23:41:07 +02:00
PressureStallMeter.c Save text buffer in Meter 2021-03-04 23:57:45 +01:00
PressureStallMeter.h Mark remaining classes const 2020-10-13 14:56:01 +02:00
ProcessField.h Rework enum ProcessField 2020-12-19 21:13:32 +01:00
SELinuxMeter.c Drop unused attributes of actually used function parameters 2021-03-24 19:27:03 +01:00
SELinuxMeter.h Convert personal copyright authorship to team 2020-12-04 13:55:55 +01:00
SystemdMeter.c Save text buffer in Meter 2021-03-04 23:57:45 +01:00
SystemdMeter.h Convert personal copyright authorship to team 2020-12-04 13:55:55 +01:00
ZramMeter.c Save text buffer in Meter 2021-03-04 23:57:45 +01:00
ZramMeter.h Zram Meter feature 2020-10-31 18:51:53 +01:00
ZramStats.h Linux: overhaul memory partition 2021-02-07 12:41:52 +01:00