Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. public static void customewait(int seconds){
  2. Date start = new Date();
  3. Date end = new Date();
  4. while(end.getTime() - start.getTime() < seconds * 1000){
  5. end = new Date();
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement