aboutsummaryrefslogtreecommitdiff
path: root/src/lib/time/tvdiff.h
blob: 724af1528aa3b8b7efa1a05440e4655d99c48c81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Copyright (c) 2003-2004, Roger Dingledine
 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
 * Copyright (c) 2007-2019, The Tor Project, Inc. */
/* See LICENSE for licensing information */

/**
 * \file tvdiff.h
 * \brief Header for tvdiff.c
 **/

#ifndef TOR_TVDIFF_H
#define TOR_TVDIFF_H

#include "lib/cc/torint.h"
struct timeval;

long tv_udiff(const struct timeval *start, const struct timeval *end);
long tv_mdiff(const struct timeval *start, const struct timeval *end);
int64_t tv_to_msec(const struct timeval *tv);

time_t time_diff(const time_t from, const time_t to);

#endif