Fixed time measurement function in apt.cmd