OS2 World Community Forum
OS/2, eCS & ArcaOS - Technical => Programming => Topic started by: TeLLie on December 20, 2024, 06:48:23 pm
-
Hello all,
I was wondering if its possible to add a time to see howlong a build takes.
f.e
I have a build cmd like:
#!/bin/sh
NCORES=$(nproc)
MAXCORES=$(( NCORES - 5 ))
NJS=$(( MAXCORES > 1 ? MAXCORES : 1 ))
echo "Cleaning previous compiled files..."
rm -r qmake-qt6-gcc1420
echo "Make a new directory..."
mkdir qmake-qt6-gcc1420
cd qmake-qt6-gcc1420
echo "Creating the Makefile..."
qmake6 ../ -r -spec os2-g++ -r CONFIG+="release" 2>&1 |tee qmake.out
echo "Compiling the programma with $NJS threads ($NCORES cores)..."
make -j$NJS 2>&1 |tee make.out
echo "Done."
I like to see how long a compiling takes in time
So is it possible to add some strings in this cmd ??
As i have no idea how to add or what string to use.
Could someone helps me out
With kind regards, TeLLie
-
I use timex.exe from the old AIX like package, attached.
timex build.cmd or timex make, etc.
-
Hello Dave
The TIMEX you posted is from 1995-03-02 (26.1KB). On Hobbes there is "AIXTools_1997-01-25.zip (https://hobbesarchive.com/?search=AIXTools_1997-01-25.zip)" with TIMEX 1996-01-12 (26.9 KB). I guess both are the same with different compile times, right?
Sorry if I'm being annoying, It is just because I like collecting the software.
Regards
-
I'd assume they're the same code, it is a pretty simple program. Possible some other utility was updated.
-
I was wondering if its possible to add a time to see howlong a build takes.
I use:
@date.exe > ..\bld.log
@cmake --build . --parallel 6 | tee -a ..\bld.log
@date.exe >> ..\bld.log
'date.exe' is the standard *nix util, not the OS/2 "date" command
-
Thankz all,
Will see what to use...
As i prefer to get the output in min/secs
Wish all a merry Xmas, and all the best for 2025
-
Hi TeLLie,
just in case you want to have a look, i have posted a simple solution for this in the REXX tutorials thread (https://www.os2world.com/forum/index.php/topic,3846.msg47389.html#msg47389).