Forum Discussion
Jason_Heath_432
May 06, 2011Nimbostratus
Is 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...
hooleylist
May 06, 2011Cirrostratus
microsecond 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
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