Advance this object's current time by the specified amount.

Synopsis

Declared in <bdlmt_timereventscheduler.h>

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

Description

Advance this object's current‐time value by the specified amount of time, and notify the scheduler that the time has changed. Return the updated current‐time value. The behavior is undefined unless amount represents a positive time interval, 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 time interval by which to advance

Created with MrDocs