Fixed timing issue in Linux
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Sun, 4 May 2008 09:15:50 +0000 (09:15 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Sun, 4 May 2008 09:15:50 +0000 (09:15 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1192 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/build/build.py

index 4b8b40c..68bda09 100644 (file)
@@ -1194,7 +1194,7 @@ def MyOptionParser():
 #   @retval 1     Tool failed\r
 #\r
 def Main():\r
-    StartTime = time.clock()\r
+    StartTime = time.time()\r
 \r
     # Initialize log system\r
     EdkLogger.Initialize()\r
@@ -1288,7 +1288,7 @@ def Main():
     if MyBuild != None:\r
         MyBuild.Db.Close()\r
 \r
-    FinishTime = time.clock()\r
+    FinishTime = time.time()\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
 \r