From be8bca81797f31db878a1ecc33659fe931b5b7c0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 23 Jul 2021 20:10:45 +0200 Subject: introduce new TIME helper functions --- src/include/gnunet_time_lib.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/include') diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h index bddf5c6bf..ff602194c 100644 --- a/src/include/gnunet_time_lib.h +++ b/src/include/gnunet_time_lib.h @@ -557,6 +557,15 @@ bool GNUNET_TIME_relative_is_forever (struct GNUNET_TIME_Relative rel); +/** + * Test if @a rel is zero. + * + * @return true if it is. + */ +bool +GNUNET_TIME_relative_is_zero (struct GNUNET_TIME_Relative rel); + + /** * Convert seconds after the UNIX epoch to absolute time. * -- cgit v1.2.3