Public Member Functions | |
TimeInUnits () | |
duration_t | operator() () |
Return the clock value with random padding added. More... | |
Public Member Functions inherited from evgen::details::TimeInUnitsBase< Clock, Duration > | |
duration_t | operator() () |
Reads and returns the current time the clock. More... | |
Private Types | |
using | Base_t = TimeInUnitsBase< Clock, Duration > |
using | ClockPeriod = typename Clock::period |
using | ReqPeriod = typename Duration::period |
using | PeriodRatio = std::ratio< ClockPeriod::num *ReqPeriod::den, ReqPeriod::num *ClockPeriod::den > |
using | duration_t = art::TimeValue_t |
Type of the time duration as returned by this class. More... | |
Private Attributes | |
std::default_random_engine | engine |
std::uniform_int_distribution< duration_t > | flat |
Static Private Attributes | |
static constexpr intmax_t | paddingfactor = PeriodRatio::num / PeriodRatio::den |
Additional Inherited Members | |
Public Types inherited from evgen::details::TimeInUnitsBase< Clock, Duration > | |
using | duration_t = art::TimeValue_t |
Type of the time duration as returned by this class. More... | |
Static Public Member Functions inherited from evgen::details::TimeInUnitsBase< Clock, Duration > | |
static duration_t | read_clock () |
Reads and returns the current time the clock. More... | |
static duration_t | currentOffsetFromEpoch () |
Static Protected Member Functions inherited from evgen::details::TimeInUnitsBase< Clock, Duration > | |
static constexpr duration_t | toDuration (TimeInterval dt) |
Converts a std::chrono::duration into our duration metric. More... | |
static constexpr auto | periodToDuration () |
Returns the duration (duration_t ) of a period type. More... | |
static duration_t | timeFromEpoch (TimePoint t) |
Returns the time elapsed from the epoch to t . More... | |
Definition at line 253 of file GeneratedEventTimestamp_plugin.cc.
|
private |
Definition at line 259 of file GeneratedEventTimestamp_plugin.cc.
|
private |
Definition at line 264 of file GeneratedEventTimestamp_plugin.cc.
|
private |
Type of the time duration as returned by this class.
Definition at line 114 of file GeneratedEventTimestamp_plugin.cc.
|
private |
Definition at line 269 of file GeneratedEventTimestamp_plugin.cc.
|
private |
Definition at line 265 of file GeneratedEventTimestamp_plugin.cc.
|
inline |
Return the clock value with random padding added.
Definition at line 277 of file GeneratedEventTimestamp_plugin.cc.
|
inline |
Definition at line 274 of file GeneratedEventTimestamp_plugin.cc.
|
private |
Definition at line 281 of file GeneratedEventTimestamp_plugin.cc.
|
private |
Definition at line 282 of file GeneratedEventTimestamp_plugin.cc.
|
staticprivate |
Definition at line 271 of file GeneratedEventTimestamp_plugin.cc.