aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_time_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-08-11 22:24:07 +0000
committerChristian Grothoff <christian@grothoff.org>2009-08-11 22:24:07 +0000
commit596fe6fcff78fc66f2ed7e8bd46475feef9c6210 (patch)
treef2d48964e5d77ada7f9f5188b5f8c35483dded66 /src/include/gnunet_time_lib.h
parentb309c5f5ae339faf3632f7ee3a86520981f6523a (diff)
downloadgnunet-596fe6fcff78fc66f2ed7e8bd46475feef9c6210.tar.gz
gnunet-596fe6fcff78fc66f2ed7e8bd46475feef9c6210.zip
more work on FS URIs
Diffstat (limited to 'src/include/gnunet_time_lib.h')
-rw-r--r--src/include/gnunet_time_lib.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h
index 5a339e6cb..b5da09cd8 100644
--- a/src/include/gnunet_time_lib.h
+++ b/src/include/gnunet_time_lib.h
@@ -61,7 +61,7 @@ struct GNUNET_TIME_Relative
61 */ 61 */
62struct GNUNET_TIME_RelativeNBO 62struct GNUNET_TIME_RelativeNBO
63{ 63{
64 uint64_t value GNUNET_PACKED; 64 uint64_t value__ GNUNET_PACKED;
65}; 65};
66 66
67 67
@@ -70,13 +70,15 @@ struct GNUNET_TIME_RelativeNBO
70 */ 70 */
71struct GNUNET_TIME_AbsoluteNBO 71struct GNUNET_TIME_AbsoluteNBO
72{ 72{
73 uint64_t value GNUNET_PACKED; 73 uint64_t value__ GNUNET_PACKED;
74}; 74};
75 75
76
76/** 77/**
77 * @brief constants to specify time 78 * @brief constants to specify time
78 */ 79 */
79#define GNUNET_TIME_UNIT_ZERO GNUNET_TIME_relative_get_zero() 80#define GNUNET_TIME_UNIT_ZERO GNUNET_TIME_relative_get_zero()
81#define GNUNET_TIME_UNIT_ZERO_ABS GNUNET_TIME_absolute_get_zero()
80#define GNUNET_TIME_UNIT_MILLISECONDS GNUNET_TIME_relative_get_unit() 82#define GNUNET_TIME_UNIT_MILLISECONDS GNUNET_TIME_relative_get_unit()
81#define GNUNET_TIME_UNIT_SECONDS GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 1000) 83#define GNUNET_TIME_UNIT_SECONDS GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 1000)
82#define GNUNET_TIME_UNIT_MINUTES GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 60) 84#define GNUNET_TIME_UNIT_MINUTES GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 60)
@@ -104,6 +106,11 @@ struct GNUNET_TIME_AbsoluteNBO
104struct GNUNET_TIME_Relative GNUNET_TIME_relative_get_zero (void); 106struct GNUNET_TIME_Relative GNUNET_TIME_relative_get_zero (void);
105 107
106/** 108/**
109 * Return absolute time of 0ms.
110 */
111struct GNUNET_TIME_Absolute GNUNET_TIME_absolute_get_zero (void);
112
113/**
107 * Return relative time of 1ms. 114 * Return relative time of 1ms.
108 */ 115 */
109struct GNUNET_TIME_Relative GNUNET_TIME_relative_get_unit (void); 116struct GNUNET_TIME_Relative GNUNET_TIME_relative_get_unit (void);