package
Version:
v0.0.0-...-15a9a0c
Opens a new window with list of versions in this module.
Published: May 19, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package timing provides functions to record timing information.
Stage represents a discrete unit of work that is being timed.
Start starts and returns a new Stage named name.
Example usage to report the time used until the end of the current function:
ctx, st := timing.Start(ctx, "my_stage")
defer st.End()
End ends the stage. Child stages are recursively examined and also ended
(although we expect them to have already been ended).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.