N/A
This commit is contained in:
parent
c5a4cf4e11
commit
55c975ad55
1 changed files with 11 additions and 3 deletions
14
src/fr/devinsy/util/SimpleChronometer.java
Executable file → Normal file
14
src/fr/devinsy/util/SimpleChronometer.java
Executable file → Normal 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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue