addTemporalMarker

open fun addTemporalMarker(callback: MarkerCallback): T

Add a temporal marker at the current duration to run a callback at that time.

Return

The builder

Parameters

callback

The callback to run


open fun addTemporalMarker(time: Double, callback: MarkerCallback): T
open fun addTemporalMarker(time: TimeProducer, callback: MarkerCallback): T

Add a temporal marker at a given time to run a callback at that time.

Return

The builder

Parameters

time

The time to run the callback (seconds)

callback

The callback to run


open fun addTemporalMarker(time: Measure<Time>, callback: MarkerCallback): T

Add a temporal marker at a given time to run a callback at that time.

Return

The builder

Parameters

time

The time to run the callback

callback

The callback to run


open fun addTemporalMarker(time: Double, unit: Time, callback: MarkerCallback): T

Add a temporal marker at a given time to run a callback at that time.

Return

The builder

Parameters

time

The time to run the callback

unit

The unit of the time

callback

The callback to run


open fun addTemporalMarker(scale: Double, offset: Double, callback: MarkerCallback): T

Add a temporal marker at a given time to run a callback at that time.

Return

The builder

Parameters

scale

A multiplicative scale to apply to the time

offset

The offset to add to the time (seconds)

callback

The callback to run


open fun addTemporalMarker(scale: Double, offset: Measure<Time>, callback: MarkerCallback): T

Add a temporal marker at a given time to run a callback at that time.

Return

The builder

Parameters

scale

A multiplicative scale to apply to the time

offset

The offset to add to the time

callback

The callback to run


open fun addTemporalMarker(time: TimeProducer, timeUnit: Time, callback: MarkerCallback): T

Add a temporal marker at a given time to run a callback at that time.

Return

The builder

Parameters

time

The time to run the callback

timeUnit

The unit of the time supplied (will be converted to seconds)

callback

The callback to run