Method and apparatus for obtaining offline operation time, and electronic device
The present invention discloses a method and an apparatus for obtaining offline operation time, and an electronic device. The method comprises: obtaining the number of system clocks corresponding to the moment when the application software is logged in to as the number of login system clocks; obtain...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The present invention discloses a method and an apparatus for obtaining offline operation time, and an electronic device. The method comprises: obtaining the number of system clocks corresponding to the moment when the application software is logged in to as the number of login system clocks; obtaining the server time of the moment when logging in the application software; obtaining the number ofsystem clocks corresponding to the moment at which the application software is operated in an offline manner, as the number of offline system clocks; and determining the offline operation time according to the server time, the number of login system clocks, and the number of offline system clocks. According to the method for obtaining the offline operation time disclosed by the present invention,even when the system is offline or stays in the background for a long time, or even after the program is exited and forced to be closed, the application software is logged in to when the system is connected to the network, and |
---|