time is now calculated in milliseconds