windows - 有什么办法可以改变系统时间的速度
问题描述
我开发了一个使用系统时间的程序,我需要对其进行测试。我使用的是 Windows 10。有什么方法可以加快系统时间并更快地测试我的程序。感谢您的回答。
解决方案
如果您的意思是“是否可以让我的计算机将一秒视为十秒?”,那么我必须承认这是不可能的。
但是,可以修改计算机的系统(例如使用命令行命令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
推荐阅读
- python - 通过分叉与多处理共享python中的只读对象,失败
- python - 仅在 for 循环完成时执行代码
- react-native - React Native useEffect 挂钩未按预期更新状态
- python - 对多个对象使用格式
- reactjs - 如何使复选框根据其检查状态 True/False 执行不同的操作
- python - 在 Django 模型上保存列表
- android - 如何组织数百个矢量绘图?
- mongodb - MonogoDB:删除重复的子文档
- node.js - Discord bot 未检测到消息?
- flutter - Flutter:如何从资产中读取文本文件并将其显示到容器中