Skip to content

Commit

Permalink
fixup! feat: move clock interface here, refactor discrete interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Jun 29, 2024
1 parent 3e6d723 commit 95682ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ using .Clocks
The default periodic clock with tick interval `dt`. If `dt` is left unspecified, it will
be inferred (if possible).
"""
Clock(dt) = PeriodicClock(dt)
Clock(dt::Union{<:Rational, Float64}) = PeriodicClock(dt)
Clock(dt) = PeriodicClock(convert(Float64, dt))
Clock() = PeriodicClock(nothing)

@doc """
Expand Down

0 comments on commit 95682ad

Please sign in to comment.