getLatencyTimeUnits() — fiber Function Reference
Architecture documentation for the getLatencyTimeUnits() function in logger_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 7a3c1ae2_ef11_b503_1eb9_203777026383["getLatencyTimeUnits()"] 97b45bc9_01a3_2a9a_4c94_9de1344ca94c["logger_test.go"] 7a3c1ae2_ef11_b503_1eb9_203777026383 -->|defined in| 97b45bc9_01a3_2a9a_4c94_9de1344ca94c 19bce48b_5ef4_c12e_24da_339eaf163633["Test_Logger_WithLatency()"] 19bce48b_5ef4_c12e_24da_339eaf163633 -->|calls| 7a3c1ae2_ef11_b503_1eb9_203777026383 1b7d2c5a_64b9_f2f0_601a_11bc66b47b03["Test_Logger_WithLatency_DefaultFormat()"] 1b7d2c5a_64b9_f2f0_601a_11bc66b47b03 -->|calls| 7a3c1ae2_ef11_b503_1eb9_203777026383 style 7a3c1ae2_ef11_b503_1eb9_203777026383 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/logger/logger_test.go lines 577–600
func getLatencyTimeUnits() []struct {
unit string
div time.Duration
} {
// windows does not support µs sleep precision
// https://github.com/golang/go/issues/29485
if runtime.GOOS == "windows" {
return []struct {
unit string
div time.Duration
}{
{unit: "ms", div: time.Millisecond},
{unit: "s", div: time.Second},
}
}
return []struct {
unit string
div time.Duration
}{
{unit: "µs", div: time.Microsecond},
{unit: "ms", div: time.Millisecond},
{unit: "s", div: time.Second},
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getLatencyTimeUnits() do?
getLatencyTimeUnits() is a function in the fiber codebase, defined in middleware/logger/logger_test.go.
Where is getLatencyTimeUnits() defined?
getLatencyTimeUnits() is defined in middleware/logger/logger_test.go at line 577.
What calls getLatencyTimeUnits()?
getLatencyTimeUnits() is called by 2 function(s): Test_Logger_WithLatency, Test_Logger_WithLatency_DefaultFormat.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free