Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
time_units.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2021 Kaspar Schleiser <kaspar@schleiser.de>
3
* Copyright (C) 2014 Oliver Hahm <oliver.hahm@inria.fr>
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser
6
* General Public License v2.1. See the file LICENSE in the top level
7
* directory for more details.
8
*/
9
20
#ifndef TIME_UNITS_H
21
#define TIME_UNITS_H
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
30
#define HOURS_PER_DAY (24LU)
31
35
#define MIN_PER_DAY (1440LU)
36
40
#define SEC_PER_DAY (86400LU)
41
45
#define MIN_PER_HOUR (60LU)
46
50
#define SEC_PER_HOUR (3600LU)
51
55
#define MS_PER_HOUR (3600000LU)
56
60
#define US_PER_HOUR (3600000000LU)
61
65
#define SEC_PER_MIN (60LU)
66
70
#define CS_PER_SEC (100LU)
71
75
#define MS_PER_SEC (1000LU)
76
80
#define MS_PER_CS (10U)
81
85
#define US_PER_SEC (1000000LU)
86
90
#define US_PER_MS (1000LU)
91
95
#define US_PER_CS (10000U)
96
100
#define NS_PER_US (1000LU)
101
105
#define NS_PER_MS (1000000LU)
106
110
#define NS_PER_SEC (1000000000LLU)
111
112
#ifdef __cplusplus
113
}
114
#endif
115
117
#endif
/* TIME_UNITS_H */
Generated on Fri Nov 15 2024 20:23:59 by
1.9.8