changed time variable from int to double, still unsure of what unit of
measure it will be