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 */
7 #ifndef TOR_TIME_DEFS_H
8 #define TOR_TIME_DEFS_H
13 * \brief Definitions for timing-related constants.
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)
23 #endif /* !defined(TOR_TIME_DEFS_H) */