We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e6d723 commit 95682adCopy full SHA for 95682ad
src/clock.jl
@@ -25,7 +25,8 @@ using .Clocks
25
The default periodic clock with tick interval `dt`. If `dt` is left unspecified, it will
26
be inferred (if possible).
27
"""
28
-Clock(dt) = PeriodicClock(dt)
+Clock(dt::Union{<:Rational, Float64}) = PeriodicClock(dt)
29
+Clock(dt) = PeriodicClock(convert(Float64, dt))
30
Clock() = PeriodicClock(nothing)
31
32
@doc """
0 commit comments