2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 07:56:03 +00:00

Use crl::time/now instead of TimeMs/getms.

This commit is contained in:
John Preston
2019-02-19 10:57:53 +04:00
parent d208236994
commit fe618bd652
310 changed files with 1133 additions and 1141 deletions

View File

@@ -135,7 +135,7 @@ auto _monitorLastGot = 0LL;
} // namespace
QRect psDesktopRect() {
auto tnow = getms();
auto tnow = crl::now();
if (tnow > _monitorLastGot + 1000LL || tnow < _monitorLastGot) {
_monitorLastGot = tnow;
_monitorRect = QApplication::desktop()->availableGeometry(App::wnd());
@@ -200,15 +200,15 @@ auto _lastUserAction = 0LL;
} // namespace
void psUserActionDone() {
_lastUserAction = getms(true);
_lastUserAction = crl::now();
}
bool psIdleSupported() {
return false;
}
TimeMs psIdleTime() {
return getms(true) - _lastUserAction;
crl::time psIdleTime() {
return crl::now() - _lastUserAction;
}
void psActivateProcess(uint64 pid) {