计时器逻辑 [英] Timer Logic
本文介绍了计时器逻辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
有什么方法可以运行计时器吗?
Is there any way I can run timer such that for example
我的打印1-间隔= 3秒
my Print 1 - Interval = 3 seconds
我的打印2-间隔= 7秒
my Print 2 - Interval = 7 seconds
我的打印3-间隔= 13秒
my Print 3 - Interval = 13 seconds
定时器间隔-1秒
那我的处决应该是
三秒钟后,我的打印1应该写为打印1
After three seconds my Print 1 should write as Print 1
再次在三秒钟后,我的打印1应该写为打印1 -----总共6秒钟
Again After three seconds my Print 1 should write as Print 1 ----- Total 6 seconds
一秒钟后,我的Print 2应该写为Print 2 ------第7秒,等等.
After one seconds my Print 2 should write as Print 2 ------ 7th second etc....
推荐答案
也许使用带有相应间隔的三个不同的计时器会更容易.
这篇关于计时器逻辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文