Skip to contents

Clock(dt, phase) is a periodic clock ticking at phase + k dt; Clock() a discrete clock whose period is inferred. SolverStepClock() ticks at every step of the integrator, and ContinuousClock() is the continuous time domain. TimeDomain(x) returns the clock of a variable indexed with a ShiftIndex(), or NULL. These are the clocks of SciMLBase.

Usage

Clock(dt = NULL, phase = 0)

SolverStepClock()

ContinuousClock()

TimeDomain(x)

Arguments

dt

Sample interval, or NULL to infer it.

phase

Time offset of the ticks.

x

A variable.

Value

A TimeDomain object.

Examples

Clock(0.1)
#> Clock(0.1) 
Clock(0.1, phase = 0.05)
#> Clock(0.1, phase = 0.05) 
SolverStepClock()
#> SolverStepClock()