Do not cast time spent to integer since it may be decimal.