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.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h
index b9c2d92f0..aa4e8d5db 100644
--- a/src/include/gnunet_time_lib.h
+++ b/src/include/gnunet_time_lib.h
@@ -314,6 +314,22 @@ struct GNUNET_TIME_Absolute GNUNET_TIME_absolute_add (struct
314 GNUNET_TIME_Relative 314 GNUNET_TIME_Relative
315 duration); 315 duration);
316 316
317
318/**
319 * Subtract a given relative duration from the
320 * given start time.
321 *
322 * @param start some absolute time
323 * @param duration some relative time to subtract
324 * @return ZERO if start <= duration, or FOREVER if start time is FOREVER; start-duration otherwise
325 */
326struct GNUNET_TIME_Absolute GNUNET_TIME_absolute_subtract (struct
327 GNUNET_TIME_Absolute
328 start,
329 struct
330 GNUNET_TIME_Relative
331 duration);
332
317/** 333/**
318 * Multiply relative time by a given factor. 334 * Multiply relative time by a given factor.
319 * 335 *