tvdiff.h 546 B

123456789101112131415161718192021
  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. /**
  6. * \file tvdiff.h
  7. * \brief Header for tvdiff.c
  8. **/
  9. #ifndef TOR_TVDIFF_H
  10. #define TOR_TVDIFF_H
  11. #include "lib/cc/torint.h"
  12. struct timeval;
  13. long tv_udiff(const struct timeval *start, const struct timeval *end);
  14. long tv_mdiff(const struct timeval *start, const struct timeval *end);
  15. int64_t tv_to_msec(const struct timeval *tv);
  16. #endif