# This file is used to be the main entrance of ECC tool\r
#\r
# Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# Copyright (c) Microsoft Corporation.<BR>\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
\r
##\r
\r
def InitDefaultConfigIni(self):\r
paths = map(lambda p: os.path.join(p, 'Ecc', 'config.ini'), sys.path)\r
- paths = (os.path.realpath('config.ini'),) + tuple(paths)\r
+ paths = (os.path.abspath('config.ini'),) + tuple(paths)\r
for path in paths:\r
if os.path.exists(path):\r
self.ConfigFile = path\r
EdkLogger.Initialize()\r
EdkLogger.IsRaiseError = False\r
\r
- StartTime = time.clock()\r
+ StartTime = time.perf_counter()\r
Ecc = Ecc()\r
- FinishTime = time.clock()\r
+ FinishTime = time.perf_counter()\r
\r
BuildDuration = time.strftime("%M:%S", time.gmtime(int(round(FinishTime - StartTime))))\r
EdkLogger.quiet("\n%s [%s]" % (time.strftime("%H:%M:%S, %b.%d %Y", time.localtime()), BuildDuration))\r