[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10292 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10292 - gnunet/src/util |
Date: |
Mon, 15 Feb 2010 00:58:31 +0100 |
Author: grothoff
Date: 2010-02-15 00:58:31 +0100 (Mon, 15 Feb 2010)
New Revision: 10292
Modified:
gnunet/src/util/time.c
Log:
min
Modified: gnunet/src/util/time.c
===================================================================
--- gnunet/src/util/time.c 2010-02-14 23:58:22 UTC (rev 10291)
+++ gnunet/src/util/time.c 2010-02-14 23:58:31 UTC (rev 10292)
@@ -153,7 +153,24 @@
return (t1.value < t2.value) ? t1 : t2;
}
+
/**
+ * Return the maximum of two relative time values.
+ *
+ * @param t1 first timestamp
+ * @param t2 other timestamp
+ * @return timestamp that is smaller
+ */
+struct GNUNET_TIME_Absolute
+GNUNET_TIME_absolute_max (struct
+ GNUNET_TIME_Absolute
+ t1, struct GNUNET_TIME_Absolute t2)
+{
+ return (t1.value > t2.value) ? t1 : t2;
+}
+
+
+/**
* Given a timestamp in the future, how much time
* remains until then?
*
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10292 - gnunet/src/util,
gnunet <=