diff --git a/src/util.jl b/src/util.jl index 682f6c3..a70e985 100644 --- a/src/util.jl +++ b/src/util.jl @@ -42,6 +42,7 @@ function timedifference(starttime::DateTime, stoptime::DateTime, unit::String):: diff = stoptime - starttime unit = lowercase(unit) + # Check the unit and calculate the time difference accordingly if unit == "milliseconds" return diff.value elseif unit == "seconds"