Tor
0.4.9.2-alpha-dev
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
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
Functions
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
Enumerator
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
b
c
d
f
g
h
l
m
n
o
p
r
s
v
Enumerations
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
g
h
i
m
n
o
p
q
r
s
t
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
lib
time
time_sys.c
Go to the documentation of this file.
1
/* Copyright (c) 2018-2021, The Tor Project, Inc. */
2
/* See LICENSE for licensing information */
3
4
/**
5
* \file time_sys.c
6
* \brief Subsystem object for monotime setup.
7
**/
8
9
#include "orconfig.h"
10
#include "
lib/subsys/subsys.h
"
11
#include "
lib/time/time_sys.h
"
12
#include "
lib/time/compat_time.h
"
13
14
static
int
15
subsys_time_initialize(
void
)
16
{
17
monotime_init
();
18
return
0;
19
}
20
21
const
subsys_fns_t
sys_time = {
22
.
name
=
"time"
,
23
SUBSYS_DECLARE_LOCATION
(),
24
/* Monotonic time depends on logging, and a lot of other modules depend on
25
* monotonic time. */
26
.level = -80,
27
.supported =
true
,
28
.initialize = subsys_time_initialize,
29
};
monotime_init
void monotime_init(void)
Definition:
compat_time.c:750
compat_time.h
Functions and types for monotonic times.
subsys_fns_t
Definition:
subsys.h:38
subsys_fns_t::name
const char * name
Definition:
subsys.h:43
subsys.h
Types used to declare a subsystem.
SUBSYS_DECLARE_LOCATION
#define SUBSYS_DECLARE_LOCATION()
Definition:
subsys.h:211
time_sys.h
Declare subsystem object for the time module.
Generated by
1.9.4