首页 > 解决方案 > 有什么办法可以改变系统时间的速度

问题描述

我开发了一个使用系统时间的程序,我需要对其进行测试。我使用的是 Windows 10。有什么方法可以加快系统时间并更快地测试我的程序。感谢您的回答。

标签: windowstimesystem

解决方案


如果您的意思是“是否可以让我的计算机将一秒视为十秒?”,那么我必须承认这是不可能的。

但是,可以修改计算机的系统(例如使用命令行命令time),因此您可能需要执行以下操作:

Have your program do the first thing
Alter the system time of your computer
Have your program do the next thing
Verify the produced results

推荐阅读