From e3276288556d520773f7de93e6c48d0b95069a38 Mon Sep 17 00:00:00 2001 From: Kurt Partridge Date: Fri, 23 Mar 2012 22:00:15 +0900 Subject: [PATCH] update ResearchLogger times to report SystemClock.uptime() Bug: 6188932 Change-Id: I852537caed46958e4d9c3251664edaa69652205c --- java/src/com/android/inputmethod/latin/ResearchLogger.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/ResearchLogger.java b/java/src/com/android/inputmethod/latin/ResearchLogger.java index 509fbe0fd..6ba9118d6 100644 --- a/java/src/com/android/inputmethod/latin/ResearchLogger.java +++ b/java/src/com/android/inputmethod/latin/ResearchLogger.java @@ -21,6 +21,7 @@ import android.inputmethodservice.InputMethodService; import android.os.Handler; import android.os.HandlerThread; import android.os.Process; +import android.os.SystemClock; import android.text.TextUtils; import android.util.Log; import android.view.MotionEvent; @@ -263,9 +264,10 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang public void run() { final long currentTime = System.currentTimeMillis(); mDate.setTime(currentTime); + final long upTime = SystemClock.uptimeMillis(); final String printString = String.format("%s\t%d\t%s\t%s\n", - mDateFormat.format(mDate), currentTime, logGroup.mLogString, log); + mDateFormat.format(mDate), upTime, logGroup.mLogString, log); if (LatinImeLogger.sDBG) { Log.d(TAG, "Write: " + '[' + logGroup.mLogString + ']' + log); }