開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
windows 7 底下的 Dev-C++
問題(Question):
如標題的需求,需要呼叫哪個函數?
預期的正確結果(Expected Output):
在 delay 3000ms 的時候,能夠把 CPU time
釋放給別個程式使用
程式碼(Code):(請善用置底文網頁, 記得排版)
time1(&t1);// get ms of now
t2= t1;
while ((t2-t1) < 3000) {
time1(&t1);
}
補充說明(Supplement):
time1(&t1);
是自己寫的副程式