Guest User

Untitled

a guest
Oct 17th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. clock_t now = clock();
  2. myStartTime = start;
  3. myTimeLimit = 5 // in seconds
  4.  
  5. for (int depth = 2; ((double)(now - myStartTime)) / (double)CLOCKS_PER_SEC < myTimeLimit; depth += 2)
  6. {
  7. //
  8. }
  9.  
  10. var now = DateTime.Now;
  11. myStartTime = start;
  12. myTimeLimit = 5;
  13.  
  14. for (int depth = 2; (now - myStartTime).TotalSeconds < myTimeLimit; depth += 2)
  15. {
  16.  
  17. }
Add Comment
Please, Sign In to add comment