diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-02-14 23:58:58 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-02-14 23:58:58 +0000 |
commit | 6e108aed24f9993be4d69147e18322d2d58b34d1 (patch) | |
tree | 2ce8384860eb80474857d60cef815f7345e8cea2 /src/include/gnunet_time_lib.h | |
parent | 9f59db64cc02445b6cc3447b8675d9e938b75f09 (diff) | |
download | gnunet-6e108aed24f9993be4d69147e18322d2d58b34d1.tar.gz gnunet-6e108aed24f9993be4d69147e18322d2d58b34d1.zip |
max
Diffstat (limited to 'src/include/gnunet_time_lib.h')
-rw-r--r-- | src/include/gnunet_time_lib.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h index d00867e80..8336a04fd 100644 --- a/src/include/gnunet_time_lib.h +++ b/src/include/gnunet_time_lib.h | |||
@@ -218,6 +218,19 @@ struct GNUNET_TIME_Absolute GNUNET_TIME_absolute_min (struct | |||
218 | GNUNET_TIME_Absolute t2); | 218 | GNUNET_TIME_Absolute t2); |
219 | 219 | ||
220 | /** | 220 | /** |
221 | * Return the maximum of two absolute time values. | ||
222 | * | ||
223 | * @param t1 first timestamp | ||
224 | * @param t2 other timestamp | ||
225 | * @return timestamp that is smaller | ||
226 | */ | ||
227 | struct GNUNET_TIME_Absolute GNUNET_TIME_absolute_max (struct | ||
228 | GNUNET_TIME_Absolute | ||
229 | t1, | ||
230 | struct | ||
231 | GNUNET_TIME_Absolute t2); | ||
232 | |||
233 | /** | ||
221 | * Given a timestamp in the future, how much time | 234 | * Given a timestamp in the future, how much time |
222 | * remains until then? | 235 | * remains until then? |
223 | * | 236 | * |