Skip to content
Commit ff640084 authored by Kweku Adams's avatar Kweku Adams
Browse files

Avoid repeated time calls.

Getting the current time is expensive, so only grab it once before we
start looping.

Bug: 167681468
Test: atest com.android.server.job.controllers.TimeControllerTest
Test: atest CtsJobSchedulerTestCases
Change-Id: Ie924881717d0d38656f511e6ec44c580546e8c8d
parent 649ed103
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment