2018-06-28 18:57:01 +02:00
|
|
|
/* Copyright (c) 2003-2004, Roger Dingledine
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
|
|
|
* Copyright (c) 2007-2018, The Tor Project, Inc. */
|
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
2018-07-10 18:22:01 +02:00
|
|
|
/**
|
|
|
|
* \file tvdiff.h
|
|
|
|
* \brief Header for tvdiff.c
|
|
|
|
**/
|
|
|
|
|
2018-06-28 18:57:01 +02:00
|
|
|
#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);
|
|
|
|
|
2018-08-19 20:03:01 +02:00
|
|
|
time_t time_diff(const time_t from, const time_t to);
|
|
|
|
|
2018-06-28 18:57:01 +02:00
|
|
|
#endif
|