Commit 17de0b62 by Juliusz Chroboczek

Implement stub for gettime.

1 parent 5e002cde
......@@ -63,6 +63,14 @@ seqno_plus(unsigned short s, int plus)
return ((s + plus) & 0xFFFF);
}
/* Like gettimeofday, but should return monotonic time. If POSIX clocks
are not available, falls back to gettimeofday. */
int
gettime(struct timeval *tv)
{
return gettimeofday(tv, NULL);
}
void
timeval_minus(struct timeval *d,
const struct timeval *s1, const struct timeval *s2)
......
......@@ -26,6 +26,7 @@ int seqno_minus(unsigned short s1, unsigned short s2)
ATTRIBUTE ((const));
unsigned short seqno_plus(unsigned short s, int plus)
ATTRIBUTE ((const));
int gettime(struct timeval *tv);
void timeval_minus(struct timeval *d,
const struct timeval *s1, const struct timeval *s2);
int timeval_minus_msec(const struct timeval *s1, const struct timeval *s2)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!