changed clocks to use milliseconds