开发平台(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);
是自己写的副程式