如何暂停控制台x秒钟 [英] How do I pause the console for an x amount of seconds

查看:82
本文介绍了如何暂停控制台x秒钟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何暂停控制台一段时间。

How do you pause the console for a certain amount of seconds.

推荐答案

取决于您的工作环境。

对于Native,请致电睡眠 [ ^ ] - 对于您想要的CLR应用程序 Thread :: Sleep [ ^ ]

但是......请注意它会做到这一点:在您指定的时间暂停您的控制台。什么都不会发生......
Depending on what environment you are working in.
For Native, call Sleep[^] - for CLR applications you want Thread::Sleep[^]
But...be aware that it will do just that: pause your console for the time you specify. Nothing else will happen...


这篇关于如何暂停控制台x秒钟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆