converted time from seconds to milliseconds