Is any way to time (measure) the compiling time?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
stimpak
Level 3
Level 3
Posts: 72
Joined: Tue Apr 01, 2008 12:56 pm

Is any way to time (measure) the compiling time?

Post by stimpak »

I was compiling wine from latest git, and since wine is so huge, it takes awfully lot of time, around 20mins or so. Not that im complaining, but it made me wondering how much time my computer needs to compile it and if I could somehow time it. - I could use a timer, but that beats the reason i own a computer in the first place ;)

Surprisingly Google didn't provided with anything useful, so anyone has any suggestions or ideas i could try?

cheers
PleegWat

Is any way to time (measure) the compiling time?

Post by PleegWat »

stimpak wrote:
I was compiling wine from latest git, and since wine is so huge, it takes awfully lot of time, around 20mins or so. Not that im complaining, but it made me wondering how much time my computer needs to compile it and if I could somehow time it. - I could use a timer, but that beats the reason i own a computer in the first place ;)

Surprisingly Google didn't provided with anything useful, so anyone has any suggestions or ideas i could try?

cheers
use the 'time' command:

$ time make
<lots of make output>

real 0m40.541s
user 0m7.612s
sys 0m2.320s

This means that this make (idle run, didn't have new sources to compile)
took 40 seconds of wallclock time, 7.6 seconds of CPU time in userspace,
and 2.3 seconds of CPU time in kernel space.

Note time is a bash builtin, if you want to use the features described
in 'man time' you'll have to call /usr/bin/time explicitly.
Gert van den Berg

Is any way to time (measure) the compiling time?

Post by Gert van den Berg »

On Sat, Jun 27, 2009 at 10:51, stimpak<[email protected]> wrote:
I was compiling wine from latest git, and since wine is so huge, it takes awfully lot of time, around 20mins or so. Not that im complaining, but it made me wondering how much time my computer needs to compile it and if I could somehow time it. - I could use a timer, but that beats the reason i own a computer in the first place ;)

Surprisingly Google didn't provided with anything useful, so anyone has any suggestions or ideas i could try?
time make

(see "help time" for info (on bash at least))
Martin Gregorie

Is any way to time (measure) the compiling time?

Post by Martin Gregorie »

On Sat, 2009-06-27 at 03:51 -0500, stimpak wrote:
I was compiling wine from latest git, and since wine is so huge, it
takes awfully lot of time, around 20mins or so. Not that im
complaining, but it made me wondering how much time my computer needs
to compile it and if I could somehow time it. - I could use a timer,
but that beats the reason i own a computer in the first place ;)
$ time make all


Time runs whatever command follows it on the line. It reports the
elapsed time and the cpu time used.


Martin
Locked