aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_time_lib.h
diff options
context:
space:
mode:
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.