let time s f a =
  if !doTime then
    S.time s f a
  else f a