ark::time::NtpClientStage

Defined in header “ark/time/stages/ntp_client_stage.hh”.


This stage is used to transmit current time acquired from a predefined NTP server.

Methods

  • NtpClientStage(std::string name)
    Constructor.

  • ~NtpClientStage()
    Destructor.

  • void initialize(pipeline::StageInterface & interface)
    Called from the executor when we are initialized.

  • void start()
    Indicates that the system has settled and you should begin any threads or processing.

  • void shutdown()
    Called on shutdown, when the pipeline is finishing execution. This gives you a chance to finish out any outstanding work before your destructors are called.

  • void enable_system_clock_mock()
    Called for testing, to enable mocking the system clock (not writing to the system clock despite being told to). Useful for tests.