summaryrefslogtreecommitdiffstats
path: root/pcp/Platform.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-04-08 10:13:43 +1000
committerNathan Scott <nathans@redhat.com>2021-06-09 17:09:29 +1000
commitd4a2587568aa3d1fc1aa6a89bbe6e7797c72521e (patch)
tree0178e266395c1932baa63f94b68a5d01fec8e561 /pcp/Platform.h
parent5dfb5242370610dfad09c855925224c587edbfbf (diff)
Add time handling interfaces for the pcp platform
Related to https://github.com/htop-dev/htop/pull/574
Diffstat (limited to 'pcp/Platform.h')
-rw-r--r--pcp/Platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pcp/Platform.h b/pcp/Platform.h
index 33ea0db7..5abe339a 100644
--- a/pcp/Platform.h
+++ b/pcp/Platform.h
@@ -250,4 +250,8 @@ int Metric_instanceOffset(Metric metric, int inst);
pmAtomValue *Metric_instance(Metric metric, int inst, int offset, pmAtomValue *atom, int type);
+void Platform_gettime_realtime(struct timeval* tv, uint64_t* msec);
+
+void Platform_gettime_monotonic(uint64_t* msec);
+
#endif

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