Advance the test clock and dispatch due events.

Synopsis

Declared in <bdlmt_eventscheduler.h>

bsls::TimeInterval
advanceTime(bsls::TimeInterval amount);

Description

Advance this object's current‐time value by the specified amount of time, notify the scheduler that the time has changed, and wait for the scheduler to process the events triggered by this change in time. Return the updated current‐time value. The behavior is undefined unless amount is positive, and now + amount is within the range that can be represented with a bsls::TimeInterval.

Return Value

the updated current‐time value

Parameters

Name

Description

amount

positive interval by which to advance the test clock

Created with MrDocs