This commit is contained in:
Christian P. MOMON 2010-11-03 12:23:20 +01:00
parent c5a4cf4e11
commit 55c975ad55

14
src/fr/devinsy/util/SimpleChronometer.java Executable file → Normal file
View file

@ -60,17 +60,25 @@ public class SimpleChronometer
{ {
result = interval + " ms"; result = interval + " ms";
} }
else if (interval < 2*1000)
{
result = interval/1000 + " seconde";
}
else if (interval < 60*1000) else if (interval < 60*1000)
{ {
result = interval/1000 + " s"; result = interval/1000 + " secondes";
}
else if (interval < 2*60*1000L)
{
result = interval/(60*1000L) + " minute";
} }
else if (interval < 60*60*1000L) else if (interval < 60*60*1000L)
{ {
result = interval/(60*1000L) + " mn"; result = interval/(60*1000L) + " minutes";
} }
else if (interval < 2*60*60*1000L) else if (interval < 2*60*60*1000L)
{ {
result = interval/(60*1000L) + " heure"; result = interval/(60*60*1000L) + " heure";
} }
else if (interval < 24*60*60*1000L) else if (interval < 24*60*60*1000L)
{ {