AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ CreateFutureTimepoint()

std::chrono::steady_clock::time_point drama::CreateFutureTimepoint ( double  secs)
inline

Return a steady_clock time point suitable for use with the Path::...WaitUntil() methods based on an offset in seconds from the current time.


This is a convenience function for creating the absolute timepoints needed by the ...WaitUntil series of methods in the Path class, based on an offset from the current time.

There are plenty of other ways to generate such time points.

Parameters
secsThe delay in seconds from the current time you want to generate a timepoint for. (If negative, the time point generated is historical.)
Returns
A timepoint secs in the future.

References CreateRunDramaTask().