what is command for time delay between two statements and also tell me the prototype
what is command for time delay between two statements and also tell me the prototype
Er... This isn't really a place to request things. But, I will tell you it's platform specific.
Research Sleep() if on Windows, else sleep() if on Linux.
yeah....zacs7 is rite...if u r using some TurboC or some compiler which doesn't support this system call then u can simply loop up null statement for undefined interval of time...I mean, the time interval isn't known exactly...but there will be a delay...
say some definition line
Code:#define SOMENUMBER 1000000but u cannot really specify the time correctly in this case....Code:<statement set 1> for(i=0;i<SOMENUMBER;i++); <statement set 2>
cheers
The problem with that though, you're unnecessarily raping the CPU. And the 'time' between statement 1 and statement 2 will vary upon the system load, not to mention other factors (caching and what have you).
yeah... ....this is an overhead to CPU....it is doing nothing just eating away the cycles by noops ...i was just looking at DELAY...that's wat i was tellin...time interval cannot be specified in this case....
cheers