Use getUsedTimeMs and remove readObject