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.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h
index b805d1e0a..3dad179b5 100644
--- a/src/include/gnunet_time_lib.h
+++ b/src/include/gnunet_time_lib.h
@@ -259,6 +259,30 @@ GNUNET_TIME_relative_to_absolute (struct GNUNET_TIME_Relative rel);
259 259
260 260
261/** 261/**
262 * Round a time value so that it is suitable for transmission
263 * via JSON encodings.
264 *
265 * @param at time to round
266 * @return #GNUNET_OK if time was already rounded, #GNUNET_NO if
267 * it was just now rounded
268 */
269int
270GNUNET_TIME_round_abs (struct GNUNET_TIME_Absolute *at);
271
272
273/**
274 * Round a time value so that it is suitable for transmission
275 * via JSON encodings.
276 *
277 * @param rt time to round
278 * @return #GNUNET_OK if time was already rounded, #GNUNET_NO if
279 * it was just now rounded
280 */
281int
282GNUNET_TIME_round_rel (struct GNUNET_TIME_Relative *rt);
283
284
285/**
262 * Return the minimum of two relative time values. 286 * Return the minimum of two relative time values.
263 * 287 *
264 * @param t1 first timestamp 288 * @param t1 first timestamp