update ResearchLogger times to report SystemClock.uptime()

Bug: 6188932
Change-Id: I852537caed46958e4d9c3251664edaa69652205c
main
Kurt Partridge 2012-03-23 22:00:15 +09:00
parent d05afa3f4c
commit e327628855
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}