12345678910111213141516171819202122232425262728 |
- /* Copyright (c) 2018-2019, The Tor Project, Inc. */
- /* See LICENSE for licensing information */
- /**
- * \file time_sys.c
- * \brief Subsystem object for monotime setup.
- **/
- #include "orconfig.h"
- #include "lib/subsys/subsys.h"
- #include "lib/time/time_sys.h"
- #include "lib/time/compat_time.h"
- static int
- subsys_time_initialize(void)
- {
- monotime_init();
- return 0;
- }
- const subsys_fns_t sys_time = {
- .name = "time",
- /* Monotonic time depends on logging, and a lot of other modules depend on
- * monotonic time. */
- .level = -80,
- .supported = true,
- .initialize = subsys_time_initialize,
- };
|