Simplified millisecond rounding
Removed round_milliseconds inner function and improved comments