implement time delay in c

后端 未结 17 1872
我在风中等你
我在风中等你 2020-11-30 05:43

I don\'t know exactly how to word a search for this.. so I haven\'t had any luck finding anything.. :S

I need to implement a time delay in C.

for example I w

17条回答
  •  温柔的废话
    2020-11-30 06:15

    What operating system are you using?
    I know that on windows, you can do something like this:

    //include crap
    #include 
    
    int main () {
      //do things
      Sleep(/* ur wait time in ms */);// wait for param1 ms
      //continue to do things
    }
    

提交回复
热议问题