aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-23 20:10:45 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-23 20:10:45 +0200
commitbe8bca81797f31db878a1ecc33659fe931b5b7c0 (patch)
treed01c5f627d04f1f9bd8827921c6cbb8dfbb070fb /src/util
parentd44f867e71e13be3970e8803e0ae238e8d3ed7ee (diff)
downloadgnunet-be8bca81797f31db878a1ecc33659fe931b5b7c0.tar.gz
gnunet-be8bca81797f31db878a1ecc33659fe931b5b7c0.zip
introduce new TIME helper functions
Diffstat (limited to 'src/util')
-rw-r--r--src/util/time.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/time.c b/src/util/time.c
index 15a4160e2..3ea5a1ea1 100644
--- a/src/util/time.c
+++ b/src/util/time.c
@@ -484,6 +484,13 @@ GNUNET_TIME_relative_is_forever (struct GNUNET_TIME_Relative rel)
484} 484}
485 485
486 486
487bool
488GNUNET_TIME_relative_is_zero (struct GNUNET_TIME_Relative rel)
489{
490 return rel.rel_value_us == 0;
491}
492
493
487struct GNUNET_TIME_Absolute 494struct GNUNET_TIME_Absolute
488GNUNET_TIME_absolute_from_ms (uint64_t ms_after_epoch) 495GNUNET_TIME_absolute_from_ms (uint64_t ms_after_epoch)
489{ 496{