tor  0.4.0.0-alpha-dev
time_sys.c
Go to the documentation of this file.
1 /* Copyright (c) 2018, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
3 
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  .level = -90,
24  .supported = true,
25  .initialize = subsys_time_initialize,
26 };
void monotime_init(void)
Definition: compat_time.c:737
Functions and types for monotonic times.
Declare subsystem object for the time module.
const char * name
Definition: subsys.h:28