cool. merci bien ça devient bon.
il y a juste qu'il ne part pas de 0
.
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 public class tim{ public static void main(String[]arg){ int curSec = 0; int oldCurSec=0; long ref = (int) ((System.currentTimeMillis())/1000); int i=0; while(i==0){ curSec = (int) ((System.currentTimeMillis()-ref)/1000); if(curSec != oldCurSec) { System.out.println(curSec); oldCurSec = curSec; } } } }