From 7bf136782e1fb5bf89780c86596692de625e26a3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 17 Jul 2009 10:36:53 +0000 Subject: stuff --- src/include/gnunet_time_lib.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/include') diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h index 4ce1e3f1e..5a339e6cb 100644 --- a/src/include/gnunet_time_lib.h +++ b/src/include/gnunet_time_lib.h @@ -135,6 +135,17 @@ struct GNUNET_TIME_Absolute GNUNET_TIME_relative_to_absolute (struct GNUNET_TIME_Relative rel); +/** + * Return the minimum of two relative time values. + * + * @return timestamp that is smaller + */ +struct GNUNET_TIME_Relative GNUNET_TIME_relative_min (struct + GNUNET_TIME_Relative + t1, + struct + GNUNET_TIME_Relative t2); + /** * Given a timestamp in the future, how much time * remains until then? -- cgit v1.2.3