time_to_milliseconds

tsml_eval.utils.functions.time_to_milliseconds(time_value, time_unit)[source]

Convert a time value from the given time unit to milliseconds.

Parameters:
time_valuefloat

The time value to convert.

time_unitstr {“nanoseconds”, “microseconds”, “milliseconds”, “seconds”,

“minutes”, “hours”, “days”}

The current time unit of the value.

Returns:
float

The time in milliseconds.