mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Crashpad handler was initialized quite late since we were waiting for settings. However the settings in crashpad are persistent itself, hence we can start it at the earliest possible time and change the upload settings independently later. The only prerequisite is to have QCoreApplication constructed in order for the application name to be available. ref T652
19 lines
632 B
C++
19 lines
632 B
C++
/* Copyright (C) 2019
|
|
* swift project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
|
|
* or distributed except according to the terms contained in the LICENSE file.
|
|
*/
|
|
|
|
#include "appstarttime.h"
|
|
|
|
namespace BlackMisc
|
|
{
|
|
const QDateTime &getApplicationStartTimeUtc()
|
|
{
|
|
static const QDateTime gApplicationStartTimeUtc = QDateTime::currentDateTimeUtc();
|
|
return gApplicationStartTimeUtc;
|
|
}
|
|
}
|