LCOV - code coverage report
Current view: top level - lib/time - time_sys.c (source / functions) Hit Total Coverage
Test: lcov.info Lines: 3 3 100.0 %
Date: 2021-11-24 03:28:48 Functions: 1 1 100.0 %

          Line data    Source code
       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        5553 : subsys_time_initialize(void)
      16             : {
      17        5553 :   monotime_init();
      18        5553 :   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             : };

Generated by: LCOV version 1.14