tor  0.4.0.0-alpha-dev
tvdiff.h
Go to the documentation of this file.
1 /* Copyright (c) 2003-2004, Roger Dingledine
2  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3  * Copyright (c) 2007-2018, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
5 
11 #ifndef TOR_TVDIFF_H
12 #define TOR_TVDIFF_H
13 
14 #include "lib/cc/torint.h"
15 struct timeval;
16 
17 long tv_udiff(const struct timeval *start, const struct timeval *end);
18 long tv_mdiff(const struct timeval *start, const struct timeval *end);
19 int64_t tv_to_msec(const struct timeval *tv);
20 
21 time_t time_diff(const time_t from, const time_t to);
22 
23 #endif
Integer definitions used throughout Tor.
time_t time_diff(const time_t from, const time_t to)
Definition: tvdiff.c:181
long tv_udiff(const struct timeval *start, const struct timeval *end)
Definition: tvdiff.c:53
long tv_mdiff(const struct timeval *start, const struct timeval *end)
Definition: tvdiff.c:102
int64_t tv_to_msec(const struct timeval *tv)
Definition: tvdiff.c:160