Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java timer

import java.util.Timer;

Timer timer = new Timer();
int millis = 1000; //n*1000 millisecond = n second --> n minutes = n*60*1000

timer.schedule(new TimerTask() {
  @Override
  public void run() {
 	//what to do
  }
}, millis);
 
PREVIOUS NEXT
Tagged: #java #timer
ADD COMMENT
Topic
Name
7+2 =