Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/time-util.h @ 9595:166a188f9165 HEAD
mbox: Fields weren't being added to cache file during message saving.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 30 Jul 2010 16:55:58 +0100 |
parents | 8ca1f9f1ef2e |
children |
line wrap: on
line source
#ifndef TIME_UTIL_H #define TIME_UTIL_H struct timeval; /* Returns -1 if tv1<tv2, 1 if tv1>tv2, 0 if they're equal. */ int timeval_cmp(const struct timeval *tv1, const struct timeval *tv2); /* Returns tv1-tv2 in milliseconds. */ int timeval_diff_msecs(const struct timeval *tv1, const struct timeval *tv2); /* Returns tv1-tv2 in microseconds. */ long long timeval_diff_usecs(const struct timeval *tv1, const struct timeval *tv2); #endif