nsmcp::AccessRecordParser method timingMicroseconds (public)

 <instance of nsmcp::AccessRecordParser[i]> timingMicroseconds \
    timestamp start accept queue filter run

Defined in /usr/local/ns/tcl/nsmcp/access-record.tcl

Convert C-parsed request timing values to the parser's timing fields. Use supplied microsecond values directly, normalizing start time and phase durations to seconds.

Parameters:
timestamp (required)
Parsed timestamp or timing base supplied by the parser.
start (required)
Request start timestamp in microseconds.
accept (required)
Accept-phase duration in microseconds.
queue (required)
Queue-phase duration in microseconds.
filter (required)
Filter-phase duration in microseconds, or the line-prefilter flag for nextLine.
run (required)
Run-phase duration in microseconds.
Returns:
A timing dictionary containing the available parsed phases.

Testcases:
No testcase defined.
Source code:
set phases {}
if {$start ne {}} {
    set start [expr {$start / 1000000.0}]
    foreach value [list $accept $queue $filter $run] {
        lappend phases [expr {$value eq {} ? 0.0 : $value / 1000000.0}]
    }
}
return [:timingValues [string trim $timestamp {[]}] $start $phases]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: