aboutsummaryrefslogtreecommitdiff
path: root/src/util/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/time.c')
-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{