Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Main Page
Related Pages
Supported Boards
Modules
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Enumerations
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
w
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerator
Related Symbols
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
►
RIOT OS
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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 Mar 14 2025 16:55:56 by
1.12.0