Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #if defined(_WIN32)
  2. void wait( float seconds )
  3. {
  4. Sleep( (int) ( seconds * 1000.0f ) );
  5. }
  6. #else
  7. void wait( float seconds )
  8. {
  9. usleep( (int) ( seconds * 1000000.0f ) );
  10. }
  11. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement