1/*
2 * Copyright 2017, Data61
3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4 * ABN 41 687 119 230.
5 *
6 * This software may be distributed and modified according to the terms of
7 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
8 * See "LICENSE_BSD2.txt" for details.
9 *
10 * @TAG(DATA61_BSD)
11 */
12
13#pragma once
14
15/* seconds */
16#define SEC_IN_MINUTE 60llu
17#define NS_IN_MINUTE (SEC_IN_MINUTE*NS_IN_S)
18
19/* milliseconds */
20#define MS_IN_S 1000llu
21
22/* microseconds */
23#define US_IN_MS 1000llu
24#define US_IN_S  1000000llu
25
26/* nanoseconds */
27#define NS_IN_US 1000llu
28#define NS_IN_MS 1000000llu
29#define NS_IN_S  1000000000llu
30
31/* picoseconds */
32#define PS_IN_NS 1000llu
33#define PS_IN_US 1000000llu
34#define PS_IN_MS 1000000000llu
35#define PS_IN_S  1000000000000llu
36
37/* femptoseconds */
38#define FS_IN_PS 1000llu
39#define FS_IN_NS 1000000llu
40#define FS_IN_US 1000000000llu
41#define FS_IN_MS 1000000000000llu
42#define FS_IN_S  1000000000000000llu
43