elapsed

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware() wish.Middleware

Middleware returns a middleware that logs the elapsed time of the session.

In order to provide an accurate elapsed time for the entire session, this must be called as the last middleware in the chain.

func MiddlewareWithFormat

func MiddlewareWithFormat(format string) wish.Middleware

MiddlewareWithFormat returns a middleware that logs the elapsed time of the session. It accepts a format string to print the elapsed time.

In order to provide an accurate elapsed time for the entire session, this must be called as the last middleware in the chain.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL