stelian42 / HarleyDroid

Harley Davidson J1850 Data Analyser for Android
https://github.com/stelian42/HarleyDroid/wiki/HarleyDroid-!
GNU General Public License v3.0
33 stars 14 forks source link

Req: Millisecs in Log File #4

Closed kenrox closed 13 years ago

kenrox commented 13 years ago

the absence of millisec's in log files make combined charting and data analysis a mess in intensive data like rpm. it would be great to have it for us data-maniacs.. (yep easy peasy, i can code it but this is for the ppl right? ;))

stelian42 commented 13 years ago

Isn't this just as simple as:

diff --git a/src/org/harleydroid/HarleyDroidLogger.java b/src/org/harleydroid/Ha
index 8c1d8aa..374eff0 100644
--- a/src/org/harleydroid/HarleyDroidLogger.java
+++ b/src/org/harleydroid/HarleyDroidLogger.java
@@ -38,7 +38,7 @@ public class HarleyDroidLogger implements HarleyDataListener
        private static final String TAG = HarleyDroidLogger.class.getSimpleName(

        static final SimpleDateFormat TIMESTAMP_FORMAT =
-               new SimpleDateFormat("yyyyMMddHHmmss");
+               new SimpleDateFormat("yyyyMMddHHmmssSSS");
        static {
                TIMESTAMP_FORMAT.setTimeZone(TimeZone.getDefault());
        }
kenrox commented 13 years ago

yep thats right ;)