operation duration 2

For posts concerning the documentation, errors, ommissions, general comments, etc.

Moderators: silvia, selimgunay, Moderators

Post Reply
pbzvmz
Posts: 13
Joined: Tue Apr 20, 2010 5:41 am
Location: pbzvmz

operation duration 2

Post by pbzvmz » Sat May 08, 2010 8:58 am

Hello,
I had asked about operation duraion through a message with this subject before, and was suggested to use the clock command. I used it but it didn't work and I got an error message. Now I'd like you to help me with the problem more detailed; because it seems that I am making use of an improper form of the command (what is the correct form?).
Yours sincerely.

fmk
Site Admin
Posts: 5883
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk » Mon May 10, 2010 9:55 am

you obviously didn't try to hard!

set t1 [clock seconds]
set t2 [clock seconds]
puts "Duration [expr $t2-$t1]"

Post Reply