Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <unistd.h>
- int main(int argc, char **argv)
- {
- unsigned int index = 0;
- unsigned int mSeconds = 500;
- int returnCode;
- while(1)
- {
- if((++index % 10240) == 0 ){
- returnCode = usleep(mSeconds);
- index = 0;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement