Im looking to time how long a process takes, so that it can say search took xx seconds for eg.
I can get it to give me in seconds but since some will complete in less than a second I was wondering how to get miliseconds any help appreciated.
* edit *
I think i figured it out but please tell me if this is wrong
set starttime [clock clicks -milliseconds]
... what to time goes here
set endtime [clock clicks -milliseconds]
set timems "([expr $endtime - $starttime] ms)"
and $timems would be my time in miliseconds.
I hope thats correct as I say please let me know if im wrong.