看板Programming
标 题请问:用C写一小闹钟程式!
发信站清华资讯(枫桥驿站) (Wed Aug 2 09:56:38 2006)
转信站ptt!ctu-reader!Spring!news.nctu!news.ntu!news.ee.ttu!netnews.csie.nctu
如果我是用一个loop一直去check系统时间
cpu根本就被我绑死了! 系统就会变得很没效率!
而且变数要一读再读 因为内容不会自己改变!
要如何做?
--
※ Origin: 枫桥驿站<bbs.cs.nthu.edu.tw> ◆ From: sbt02.sbt.com.tw
1F:推 meltice:一般最简单的作法应该就是用个Timer203.204.133.140 08/02 21:19