Skip to content
Tcl Source Code View Ticket
Login

View Ticket

time command returns negative results

Closed478847ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-11-06 20:30:00
This is the code:
% time {memqueue::put "Index: [incr i], message: [info 
commands]"} 10000000
-137 microseconds per iteration

Basically, I called the code memqueue::put 10 million 
times.  Memqueue::put is my own code...obviously.  The 
time command returned the negative result above of -
137 microseconds.

I'm assuming that the ticks collected were cast 
incorrectly in the C code from a signed to an unsigned 
number and when the division took place the negative 
result was produced.

Have fun, let me know if you need anymore information.

Thanks,

Steve
kennykbplain2001-11-28 06:21:01
Logged In: YES 
user_id=99768

Fix is committed to the 8.4a4 branch and backported to 8.3, in case an 8.3.5 is built.
Log in (anonymous is fine) to add a comment.