mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-24 18:38:48 +01:00
Time startup sync
This commit is contained in:
parent
8f340da473
commit
8915ddf002
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,7 @@ class StartupSync {
|
|||
|
||||
Future<SyncResult> call(Account account) async {
|
||||
_log.info("[_run] Begin sync");
|
||||
final stopwatch = Stopwatch()..start();
|
||||
late final int syncFavoriteCount;
|
||||
try {
|
||||
syncFavoriteCount = await SyncFavorite(_c)(account);
|
||||
|
@ -48,6 +49,7 @@ class StartupSync {
|
|||
_log.shout("[_run] Failed while SyncFavorite", e, stackTrace);
|
||||
syncFavoriteCount = -1;
|
||||
}
|
||||
_log.info("[_run] Elapsed time: ${stopwatch.elapsedMilliseconds}ms");
|
||||
return SyncResult(syncFavoriteCount);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue