Bump copyright date to 2019
[tor.git] / src / lib / time / tvdiff.h
blob724af1528aa3b8b7efa1a05440e4655d99c48c81
1 /* Copyright (c) 2003-2004, Roger Dingledine
2 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3 * Copyright (c) 2007-2019, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
6 /**
7 * \file tvdiff.h
8 * \brief Header for tvdiff.c
9 **/
11 #ifndef TOR_TVDIFF_H
12 #define TOR_TVDIFF_H
14 #include "lib/cc/torint.h"
15 struct timeval;
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);
21 time_t time_diff(const time_t from, const time_t to);
23 #endif