Advertisement
Guest User

Untitled

a guest
Jun 21st, 2013
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <unistd.h>
  3.  
  4. int main(int argc, char **argv)
  5. {
  6. unsigned int index = 0;
  7. unsigned int mSeconds = 500;
  8. int returnCode;
  9.  
  10. while(1)
  11. {
  12. if((++index % 10240) == 0 ){
  13. returnCode = usleep(mSeconds);
  14. index = 0;
  15. }
  16. }
  17.  
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement