fixed c++ duration printing to use milliseconds