Advertisement
TBSpeed

Pause

Oct 12th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. /* Pause class to pause applications
  2.    Anderson, Franceschi
  3. */
  4.  
  5. public class Pause
  6. {
  7.   public static void wait( double seconds )
  8.   {
  9.      try
  10.      {
  11.        Thread.sleep( (int) ( seconds * 1000 ) );
  12.      }
  13.      catch ( InterruptedException e )
  14.      {
  15.        e.printStackTrace( );
  16.      }
  17.   }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement