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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h
index 64c5769c6..224edc03e 100644
--- a/src/include/gnunet_time_lib.h
+++ b/src/include/gnunet_time_lib.h
@@ -421,6 +421,18 @@ GNUNET_TIME_relative_multiply (struct GNUNET_TIME_Relative rel,
421 421
422 422
423/** 423/**
424 * Saturating multiply relative time by a given factor.
425 *
426 * @param rel some duration
427 * @param factor integer to multiply with
428 * @return FOREVER if rel=FOREVER or on overflow; otherwise rel*factor
429 */
430struct GNUNET_TIME_Relative
431GNUNET_TIME_relative_saturating_multiply (struct GNUNET_TIME_Relative rel,
432 unsigned long long factor);
433
434
435/**
424 * Divide relative time by a given factor. 436 * Divide relative time by a given factor.
425 * 437 *
426 * @param rel some duration 438 * @param rel some duration