Skip to content

Commit 95682ad

Browse files
fixup! feat: move clock interface here, refactor discrete interpolation
1 parent 3e6d723 commit 95682ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/clock.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ using .Clocks
2525
The default periodic clock with tick interval `dt`. If `dt` is left unspecified, it will
2626
be inferred (if possible).
2727
"""
28-
Clock(dt) = PeriodicClock(dt)
28+
Clock(dt::Union{<:Rational, Float64}) = PeriodicClock(dt)
29+
Clock(dt) = PeriodicClock(convert(Float64, dt))
2930
Clock() = PeriodicClock(nothing)
3031

3132
@doc """

0 commit comments

Comments
 (0)