Tor 0.4.9.0-alpha-dev
time.h
Go to the documentation of this file.
1/* Copyright (c) 2001, Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2021, The Tor Project, Inc. */
5/* See LICENSE for licensing information */
6
7#ifndef TOR_TIME_DEFS_H
8#define TOR_TIME_DEFS_H
9
10/**
11 * \file time.h
12 *
13 * \brief Definitions for timing-related constants.
14 **/
15
16/** How many microseconds per second */
17#define TOR_USEC_PER_SEC (1000000)
18/** How many nanoseconds per microsecond */
19#define TOR_NSEC_PER_USEC (1000)
20/** How many nanoseconds per millisecond */
21#define TOR_NSEC_PER_MSEC (1000*1000)
22
23#endif /* !defined(TOR_TIME_DEFS_H) */