I need a class to act as a simple timer
Ideally I would like to pass a variable to the class and get the delay I want ie Timer.wait(15)
Any ideas?
Printable View
I need a class to act as a simple timer
Ideally I would like to pass a variable to the class and get the delay I want ie Timer.wait(15)
Any ideas?
java.util.TImer, surprisingly enough
or, just make the Thread sleep for a while:
Thread.sleep(seconds*1000) //milliseconds!