From 55c975ad554bffff600ece96da64441b6001c504 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Wed, 3 Nov 2010 12:23:20 +0100 Subject: [PATCH] N/A --- src/fr/devinsy/util/SimpleChronometer.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) mode change 100755 => 100644 src/fr/devinsy/util/SimpleChronometer.java diff --git a/src/fr/devinsy/util/SimpleChronometer.java b/src/fr/devinsy/util/SimpleChronometer.java old mode 100755 new mode 100644 index 4da6eba..d214cfa --- a/src/fr/devinsy/util/SimpleChronometer.java +++ b/src/fr/devinsy/util/SimpleChronometer.java @@ -60,17 +60,25 @@ public class SimpleChronometer { result = interval + " ms"; } + else if (interval < 2*1000) + { + result = interval/1000 + " seconde"; + } 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) { - result = interval/(60*1000L) + " mn"; + result = interval/(60*1000L) + " minutes"; } 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) {