summaryrefslogtreecommitdiff
path: root/src/basic/time-util.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-08-28 12:01:46 +0200
committerTom Gundersen <teg@jklm.no>2015-08-28 12:01:46 +0200
commit84d449b55215dfe81305d3ee89606fdc17150ad6 (patch)
treeebb5250b2cedcb493a435119a6f408a1f72b6162 /src/basic/time-util.h
parent9c92a077b667fe3947cc8a9caa197dea8b80b8e0 (diff)
parente049fa164f0062caab6e53113b3fd7102dc739ce (diff)
Merge pull request #1063 from poettering/dbus-interface-from-type
cgls/cgtop: a variety of modernizations
Diffstat (limited to 'src/basic/time-util.h')
-rw-r--r--src/basic/time-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/time-util.h b/src/basic/time-util.h
index 03a47f310d..de881e8fe1 100644
--- a/src/basic/time-util.h
+++ b/src/basic/time-util.h
@@ -70,6 +70,7 @@ typedef struct dual_timestamp {
#define DUAL_TIMESTAMP_NULL ((struct dual_timestamp) { 0ULL, 0ULL })
usec_t now(clockid_t clock);
+nsec_t now_nsec(clockid_t clock);
dual_timestamp* dual_timestamp_get(dual_timestamp *ts);
dual_timestamp* dual_timestamp_from_realtime(dual_timestamp *ts, usec_t u);
@@ -87,6 +88,8 @@ struct timespec *timespec_store(struct timespec *ts, usec_t u);
usec_t timeval_load(const struct timeval *tv) _pure_;
struct timeval *timeval_store(struct timeval *tv, usec_t u);
+nsec_t timespec_load_nsec(const struct timespec *ts) _pure_;
+
char *format_timestamp(char *buf, size_t l, usec_t t);
char *format_timestamp_utc(char *buf, size_t l, usec_t t);
char *format_timestamp_us(char *buf, size_t l, usec_t t);