aboutsummaryrefslogtreecommitdiff
path: root/src/lib/defs/time.h
blob: 5707330795e98be27f6a515804dc090d6f93115e (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) 2001, Matej Pfajfar.
 * Copyright (c) 2001-2004, Roger Dingledine.
 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
 * Copyright (c) 2007-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */

#ifndef TOR_TIME_DEFS_H
#define TOR_TIME_DEFS_H

/**
 * \file time.h
 *
 * \brief Definitions for timing-related constants.
 **/

/** How many microseconds per second */
#define TOR_USEC_PER_SEC (1000000)
/** How many nanoseconds per microsecond */
#define TOR_NSEC_PER_USEC (1000)
/** How many nanoseconds per millisecond */
#define TOR_NSEC_PER_MSEC (1000*1000)

#endif /* !defined(TOR_TIME_DEFS_H) */