mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
getElapsedTimeSinceBoot: Honor times in suspend, too (#8983)
This commit is contained in:
@@ -1242,10 +1242,10 @@ function UIManager:getTime()
|
||||
end
|
||||
|
||||
--[[--
|
||||
Returns a TimeVal object corresponding to the last UI tick plus the time in standby.
|
||||
Returns a TimeVal object corresponding to the last UI tick plus the time in standby and suspend.
|
||||
]]
|
||||
function UIManager:getElapsedTimeSinceBoot()
|
||||
return self:getTime() + Device.total_standby_tv
|
||||
return self:getTime() + Device.total_standby_tv + Device.total_suspend_tv
|
||||
end
|
||||
|
||||
-- precedence of refresh modes:
|
||||
|
||||
Reference in New Issue
Block a user