runs for 60 seconds java code example
Example: java do something after x seconds without stopping everything else
new java.util.Timer().schedule(
new java.util.TimerTask() {
@Override
public void run() {
// your code here
}
},
5000
);