diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-02 12:54:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-02 12:54:39 +0000 |
commit | de9f2917b2abcd271391e6d573ff7ea67ef28be1 (patch) | |
tree | ce6b58b562428d78ff7d5dbdb063017a3f877f06 /src/include/gnunet_time_lib.h | |
parent | fcd40dcd667f5f173c5f810c2cc196942ac8142c (diff) | |
download | gnunet-de9f2917b2abcd271391e6d573ff7ea67ef28be1.tar.gz gnunet-de9f2917b2abcd271391e6d573ff7ea67ef28be1.zip |
absmin
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 3b901f526..d00867e80 100644 --- a/src/include/gnunet_time_lib.h +++ b/src/include/gnunet_time_lib.h | |||
@@ -205,6 +205,19 @@ struct GNUNET_TIME_Relative GNUNET_TIME_relative_min (struct | |||
205 | GNUNET_TIME_Relative t2); | 205 | GNUNET_TIME_Relative t2); |
206 | 206 | ||
207 | /** | 207 | /** |
208 | * Return the minimum of two absolute time values. | ||
209 | * | ||
210 | * @param t1 first timestamp | ||
211 | * @param t2 other timestamp | ||
212 | * @return timestamp that is smaller | ||
213 | */ | ||
214 | struct GNUNET_TIME_Absolute GNUNET_TIME_absolute_min (struct | ||
215 | GNUNET_TIME_Absolute | ||
216 | t1, | ||
217 | struct | ||
218 | GNUNET_TIME_Absolute t2); | ||
219 | |||
220 | /** | ||
208 | * Given a timestamp in the future, how much time | 221 | * Given a timestamp in the future, how much time |
209 | * remains until then? | 222 | * remains until then? |
210 | * | 223 | * |