Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 776f480c authored by Alison Cichowlas's avatar Alison Cichowlas Committed by Android (Google) Code Review
Browse files

Merge "Use uptimeMillis instead of currentTimeMillis for interval calculation." into oc-dev

parents 43346642 b7f67abe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ class ActivityMetricsLogger {
     */
    void notifyActivityLaunching() {
        if (!isAnyTransitionActive()) {
            mCurrentTransitionStartTime = System.currentTimeMillis();
            mCurrentTransitionStartTime = SystemClock.uptimeMillis();
        }
    }

@@ -299,7 +299,7 @@ class ActivityMetricsLogger {
    private int calculateCurrentDelay() {

        // Shouldn't take more than 25 days to launch an app, so int is fine here.
        return (int) (System.currentTimeMillis() - mCurrentTransitionStartTime);
        return (int) (SystemClock.uptimeMillis() - mCurrentTransitionStartTime);
    }

    private void logAppTransitionMultiEvents() {