Added timer to java app