#1671 time command returns negative results

obsolete: 8.3.2
closed
5
2001-11-27
2001-11-06
Anonymous
No

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

Discussion

  • Kevin B KENNY

    Kevin B KENNY - 2001-11-27
    • status: open --> closed
     
  • Kevin B KENNY

    Kevin B KENNY - 2001-11-27

    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.