private void startGameTimeElapseThread(){ new Thread(new Runnable() { Date d = new Date(); public void run() { while (gameOn){
You can try this one it is short :)
SystemClock.sleep(7000);
It will sleep for 7 sec look at documentation