Use double for duration and time calculations

to avoid overflows.
Bug: 126125702
Test: manual

Change-Id: I3045e8962056ca24d1c27428c0e909d240b76bdb
1 file changed