Author: dreimer
Date: Fri May 2 13:53:59 2008
New Revision: 33243
URL:
http://svn.reactos.org/svn/reactos?rev=33243&view=rev
Log:
ByeBye buildtime.exe. HELLO [System.Diagnostics.Stopwatch]
Modified:
trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershe…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1 [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Powershell/Build.ps1 [iso-8859-1] Fri May 2 13:53:59
2008
@@ -89,13 +89,21 @@
function BUILD {
if ($_ROSBE_SHOWTIME -eq 1) {
+ [System.Diagnostics.Stopwatch] $sw;
+ $sw = New-Object System.Diagnostics.StopWatch
if ($_ROSBE_WRITELOG -eq 1) {
if (!(Test-Path
"$_ROSBE_LOGDIR\BuildLog-$_ROSBE_GCCVERSION-$DATENAME-$TIMENAME.txt")) {
$null = (New-Item -path "$_ROSBE_LOGDIR" -name
"BuildLog-$_ROSBE_GCCVERSION-$DATENAME-$TIMENAME.txt" -type file)
}
- & "$_ROSBE_BASEDIR\Tools\buildtime.exe"
"$_ROSBE_MINGWMAKE" $($args) 2>&1 | tee-object -filepath
"$_ROSBE_LOGDIR\BuildLog-$_ROSBE_GCCVERSION-$DATENAME-$TIMENAME.txt"
+ $sw.Start()
+ & "$_ROSBE_MINGWMAKE" $($args) 2>&1 | tee-object
-filepath "$_ROSBE_LOGDIR\BuildLog-$_ROSBE_GCCVERSION-$DATENAME-$TIMENAME.txt"
+ $sw.Stop()
+ write-host "Total Build Time:" $sw.Elapsed.ToString()
} else {
- & "$_ROSBE_BASEDIR\Tools\buildtime.exe"
"$_ROSBE_MINGWMAKE" $($args)
+ $sw.Start()
+ & "$_ROSBE_MINGWMAKE" $($args)
+ $sw.Stop()
+ write-host "Total Build Time:" $sw.Elapsed.ToString()
}
} else {
if ($_ROSBE_WRITELOG -eq 1) {
@@ -121,13 +129,21 @@
$CPUCOUNT= &"$_ROSBE_BASEDIR\Tools\cpucount.exe" -x1
if ($_ROSBE_SHOWTIME -eq 1) {
+ [System.Diagnostics.Stopwatch] $sw;
+ $sw = New-Object System.Diagnostics.StopWatch
if ($_ROSBE_WRITELOG -eq 1) {
if (!(Test-Path
"$_ROSBE_LOGDIR\BuildLog-$_ROSBE_GCCVERSION-$DATENAME-$TIMENAME.txt")) {
$null = (New-Item -path "$_ROSBE_LOGDIR" -name
"BuildLog-$_ROSBE_GCCVERSION-$DATENAME-$TIMENAME.txt" -type file)
}
- & "$_ROSBE_BASEDIR\Tools\buildtime.exe"
"$_ROSBE_MINGWMAKE" -j $CPUCOUNT $($args) 2>&1 | tee-object -filepath
"$_ROSBE_LOGDIR\BuildLog-$_ROSBE_GCCVERSION-$DATENAME-$TIMENAME.txt"
+ $sw.Start()
+ & "$_ROSBE_MINGWMAKE" -j $CPUCOUNT $($args) 2>&1 |
tee-object -filepath
"$_ROSBE_LOGDIR\BuildLog-$_ROSBE_GCCVERSION-$DATENAME-$TIMENAME.txt"
+ $sw.Stop()
+ write-host "Total Build Time:" $sw.Elapsed.ToString()
} else {
- & "$_ROSBE_BASEDIR\Tools\buildtime.exe"
"$_ROSBE_MINGWMAKE" -j $CPUCOUNT $($args)
+ $sw.Start()
+ & "$_ROSBE_MINGWMAKE" -j $CPUCOUNT $($args)
+ $sw.Stop()
+ write-host "Total Build Time:" $sw.Elapsed.ToString()
}
} else {
if ($_ROSBE_WRITELOG -eq 1) {