Page 1 of 1

How to grab the converting time?

Posted: 2009-05-21T12:42:22-07:00
by ShanshanZg
Hi everyone,
I have ubuntu 8.10 64 bit and use convert command to convert png to tiff.
langerd@kauai:~/Desktop$ convert yard_final.png yard_final.tiff
It worked fine.
I need to know how long this converting takes, as it is required for a study. Can anyone tell me the best way to measure the time?

Thanks
Shanshan

Re: How to grab the converting time?

Posted: 2009-05-21T18:41:22-07:00
by fmw42
simply add the word "time" before your IM convert

e.g.

time convert rose: rose.png

Unix will then do the timing and report to the terminal

Re: How to grab the converting time?

Posted: 2009-05-21T18:47:24-07:00
by magick
Add -verbose to your command line. The convert program also has a -bench option. The parameter is the number of iterations.

Re: How to grab the converting time?

Posted: 2009-05-24T02:15:09-07:00
by ShanshanZg
fmw42 wrote:simply add the word "time" before your IM convert

e.g.

time convert rose: rose.png

Unix will then do the timing and report to the terminal
Thanks, this works well.
I got output
real 0m0.042ms
user om0.016s
sys 0m0.024ms

real tells me how much this conversion takes, correct?

Thanks,
Shanshan