diff options
Diffstat (limited to 'lib/monotime.h')
| -rw-r--r-- | lib/monotime.h | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/monotime.h b/lib/monotime.h index 7bd3386498..8e50c1874a 100644 --- a/lib/monotime.h +++ b/lib/monotime.h @@ -49,6 +49,10 @@ static inline time_t monotime(struct timeval *tvo)  	return ts.tv_sec;  } +#define ONE_DAY_SECOND 60*60*24 +#define ONE_WEEK_SECOND ONE_DAY_SECOND*7 +#define ONE_YEAR_SECOND ONE_DAY_SECOND*365 +  /* the following two return microseconds, not time_t!   *   * also, they're negative forms of each other, but having both makes the  | 
