aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_time_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-04-28 12:10:06 +0000
committerChristian Grothoff <christian@grothoff.org>2010-04-28 12:10:06 +0000
commitae300a58c5bdfcadca8837a1e23abe3e34032209 (patch)
treec90e62d0c32575dce3ac763fa1f67ca858823a5e /src/include/gnunet_time_lib.h
parent684476aafc7c225d565295fdac4a00ee8bfc207f (diff)
downloadgnunet-ae300a58c5bdfcadca8837a1e23abe3e34032209.tar.gz
gnunet-ae300a58c5bdfcadca8837a1e23abe3e34032209.zip
adding availability probes for search results
Diffstat (limited to 'src/include/gnunet_time_lib.h')
-rw-r--r--src/include/gnunet_time_lib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h
index fa443a463..b9c2d92f0 100644
--- a/src/include/gnunet_time_lib.h
+++ b/src/include/gnunet_time_lib.h
@@ -353,6 +353,17 @@ struct GNUNET_TIME_Relative GNUNET_TIME_relative_add (struct
353 GNUNET_TIME_Relative 353 GNUNET_TIME_Relative
354 a2); 354 a2);
355 355
356/**
357 * Subtract relative timestamp from the other.
358 *
359 * @param a1 first timestamp
360 * @param a2 second timestamp
361 * @return ZERO if a2>=a1 (including both FOREVER), FOREVER if a1 is FOREVER, a1-a2 otherwise
362 */
363struct GNUNET_TIME_Relative
364GNUNET_TIME_relative_subtract (struct GNUNET_TIME_Relative a1,
365 struct GNUNET_TIME_Relative a2);
366
356 367
357/** 368/**
358 * Convert relative time to network byte order. 369 * Convert relative time to network byte order.