Forum Discussion
Jason_Heath_432
Nimbostratus
May 06, 2011Is microsecond precision available in an iRule?
I am trying to get to microsecond precision in an iRule I am working on.
Based on reading the Tcl docs that I found a link to on this site (http://tmml.sourceforge.net/doc/tcl/ind...
hoolio
Cirrostratus
May 06, 2011microsecond resolution isn't currently possible, but millisecond resolution should work fine for calculating deltas in time:
set start_time [clock clicks -milliseconds]
do something else
log local0. "delta: [expr {[clock clicks -milliseconds] - $start_time}]"
http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htmM5
clock clicks ?-milliseconds? ... This value should only be used for the relative measurement of elapsed time.
For the current time, I think the best you can get is second resolution.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects