Make `time` an optional dependency