|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Hi I know there is a function that waits like lets say we want the program to wait for 100 milliseconds you say ?(100) Can someone please help me? thanks
|
|
#2
|
||||
|
||||
|
Depends on your OS, but you're probably looking for the sleep() function. Please note that this function looks and works different depending upon your OS.
For Windows, it is spelled with the first letter capitalized and takes the time to sleep in milliseconds (i.e.) #include <windows.h> Sleep(milliseconds); For *NIX systems, it is spelled in all lowercase and takes the time to sleep in seconds (i.e.) #include <unistd.h> sleep(seconds); There's also a nanosleep() function in *NIX systems for smaller time intervals. Hope this helps! |
|
#3
|
|||
|
|||
|
o cool thanks
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Wait? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|