Module sloth

Source
Expand description

Warn on slow operations

Structs§

SlothGuard
Returned by warn_if_slothful; cancels the warning when dropped.

Functions§

warn_if_slothful
Print a warning message after the given duration unless the returned SlothGuard is dropped first.