diff options
Diffstat (limited to 'src/include/gnunet_time_lib.h')
-rw-r--r-- | src/include/gnunet_time_lib.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h index d59eb984d..88dafc62c 100644 --- a/src/include/gnunet_time_lib.h +++ b/src/include/gnunet_time_lib.h | |||
@@ -19,6 +19,10 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @addtogroup libgnunetutil | ||
23 | * Multi-function utilities library for GNUnet programs | ||
24 | * @{ | ||
25 | * | ||
22 | * @author Christian Grothoff | 26 | * @author Christian Grothoff |
23 | * | 27 | * |
24 | * @file | 28 | * @file |
@@ -40,6 +44,7 @@ extern "C" | |||
40 | #endif | 44 | #endif |
41 | #endif | 45 | #endif |
42 | 46 | ||
47 | |||
43 | #include "gnunet_common.h" | 48 | #include "gnunet_common.h" |
44 | 49 | ||
45 | /** | 50 | /** |
@@ -238,7 +243,7 @@ GNUNET_TIME_timestamp2s (struct GNUNET_TIME_Timestamp ts); | |||
238 | * Note that the returned value will be overwritten if this function | 243 | * Note that the returned value will be overwritten if this function |
239 | * is called again. | 244 | * is called again. |
240 | * | 245 | * |
241 | * @param t the absolute time to convert | 246 | * @param ts the absolute time to convert |
242 | * @return timestamp in human-readable form in local time | 247 | * @return timestamp in human-readable form in local time |
243 | */ | 248 | */ |
244 | const char * | 249 | const char * |
@@ -614,6 +619,17 @@ GNUNET_TIME_absolute_subtract (struct GNUNET_TIME_Absolute start, | |||
614 | * Multiply relative time by a given factor. | 619 | * Multiply relative time by a given factor. |
615 | * | 620 | * |
616 | * @param rel some duration | 621 | * @param rel some duration |
622 | * @param factor double to multiply with | ||
623 | * @return FOREVER if rel=FOREVER or on overflow; otherwise rel*factor | ||
624 | */ | ||
625 | struct GNUNET_TIME_Relative | ||
626 | GNUNET_TIME_relative_multiply_double (struct GNUNET_TIME_Relative rel, | ||
627 | double factor); | ||
628 | |||
629 | /** | ||
630 | * Multiply relative time by a given factor. | ||
631 | * | ||
632 | * @param rel some duration | ||
617 | * @param factor integer to multiply with | 633 | * @param factor integer to multiply with |
618 | * @return FOREVER if rel=FOREVER or on overflow; otherwise rel*factor | 634 | * @return FOREVER if rel=FOREVER or on overflow; otherwise rel*factor |
619 | */ | 635 | */ |
@@ -910,4 +926,6 @@ GNUNET_TIME_absolute_get_monotonic ( | |||
910 | 926 | ||
911 | /** @} */ /* end of group time */ | 927 | /** @} */ /* end of group time */ |
912 | 928 | ||
929 | /** @} */ /* end of group addition */ | ||
930 | |||
913 | /* end of gnunet_time_lib.h */ | 931 | /* end of gnunet_time_lib.h */ |