Project
Loading...
Searching...
No Matches
o2::framework::TimingHelpers Struct Reference

#include <TimingHelpers.h>

Static Public Member Functions

static std::function< void(int64_t &base, int64_t &offset)> defaultRealtimeBaseConfigurator (uint64_t offset, uv_loop_t *loop)
 
static std::function< int64_t(int64_t base, int64_t offset)> defaultCPUTimeConfigurator (uv_loop_t *loop)
 
static int64_t getRealtimeSinceEpochStandalone ()
 

Detailed Description

Definition at line 21 of file TimingHelpers.h.

Member Function Documentation

◆ defaultCPUTimeConfigurator()

std::function< int64_t(int64_t, int64_t)> o2::framework::TimingHelpers::defaultCPUTimeConfigurator ( uv_loop_t loop)
static

Definition at line 30 of file TimingHelpers.cxx.

◆ defaultRealtimeBaseConfigurator()

std::function< void(int64_t &, int64_t &)> o2::framework::TimingHelpers::defaultRealtimeBaseConfigurator ( uint64_t  offset,
uv_loop_t loop 
)
static

Return a function which can be used to retrieve the base timestamp and the associated fast offset for the realtime clock.

Definition at line 19 of file TimingHelpers.cxx.

◆ getRealtimeSinceEpochStandalone()

int64_t o2::framework::TimingHelpers::getRealtimeSinceEpochStandalone ( )
static

Milliseconds since epoch, using the standard C++ clock. This will do a system call every minute or so to synchronize the clock and minimise drift.

Get milliseconds from epoch minimising the amount of system calls we do to get the time.

Definition at line 37 of file TimingHelpers.cxx.


The documentation for this struct was generated from the following files: