diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-03-04 04:53:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-03-04 04:53:31 +0000 |
commit | 429d914cdd3dd4eb662c0ca85fa3de77b26e15cc (patch) | |
tree | ea4e7f529df086420017e854c51d5e95c7cf9dbd /src/util/time.c | |
parent | bd68fcf94853210cd9c5695c8e35f2df00347807 (diff) | |
download | gnunet-429d914cdd3dd4eb662c0ca85fa3de77b26e15cc.tar.gz gnunet-429d914cdd3dd4eb662c0ca85fa3de77b26e15cc.zip |
-include time offsets in logging as well
Diffstat (limited to 'src/util/time.c')
-rw-r--r-- | src/util/time.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util/time.c b/src/util/time.c index b82a1ba7c..825b7f8ca 100644 --- a/src/util/time.c +++ b/src/util/time.c | |||
@@ -46,6 +46,18 @@ GNUNET_TIME_set_offset (long long offset) | |||
46 | 46 | ||
47 | 47 | ||
48 | /** | 48 | /** |
49 | * Get the timestamp offset for this instance. | ||
50 | * | ||
51 | * @return the offset we currently skew the locale time by | ||
52 | */ | ||
53 | long long | ||
54 | GNUNET_TIME_get_offset () | ||
55 | { | ||
56 | return timestamp_offset; | ||
57 | } | ||
58 | |||
59 | |||
60 | /** | ||
49 | * Get the current time (works just as "time", just that we use the | 61 | * Get the current time (works just as "time", just that we use the |
50 | * unit of time that the cron-jobs use (and is 64 bit)). | 62 | * unit of time that the cron-jobs use (and is 64 bit)). |
51 | * | 63 | * |