From 3ab1725bb662da41a651fa09e757ba6431bda82a Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Fri, 20 May 2022 08:37:24 +0200 Subject: [PATCH] Improved idea #344 --- .../RainLoop/Providers/AddressBook/PdoAddressBook.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Providers/AddressBook/PdoAddressBook.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Providers/AddressBook/PdoAddressBook.php index e76d76a7b..3fbba15f9 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Providers/AddressBook/PdoAddressBook.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Providers/AddressBook/PdoAddressBook.php @@ -154,12 +154,15 @@ class PdoAddressBook $sPath = $oClient->__UrlPath__; + $time = \microtime(true); $aRemoteSyncData = $this->prepareDavSyncData($oClient, $sPath); if (false === $aRemoteSyncData) { \SnappyMail\Log::info('PdoAddressBook', 'Sync() no data to sync'); return false; } + $time = \microtime(true) - $time; + \SnappyMail\HTTP\Stream::JSON(['messsage'=>"Fetched remote data in {$time} seconds"]); $aDatabaseSyncData = $this->prepareDatabaseSyncData($this->iUserID);