Advertisement
Guest User

LoopG

a guest
Mar 7th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. bool timerstate = false;
  2. int lapse = clock();
  3.  
  4. if (cb1->Checked == true)
  5. {
  6.    timerstate = true;                
  7.    while(timerstate == true)
  8.       {
  9.          if(clock() - lapse > 5000)// u said int lapse = clock(); -> amount of lapse - amount of clock() = 0
  10.             {                      // 0 cant be bigger than 5000
  11.                  //memory code ect..
  12.                  lapse = clock();                    
  13.              }               
  14.         }                
  15.  }
  16. else
  17. {
  18.       timerstate = false;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement