Expand description
A simple profiler for measuring elapsed time in Rust.
This module provides a TimeLapse struct and macros to start and end profiling.
Macros profile_start! and profile_end! are used to simplify the profiling process.
See the tesing examples at the end of this source file for usage.
Structsยง
- Time
Lapse - The
TimeLapsestruct is used to measure elapsed time in Rust applications. It provides methods to start, reset, and log the elapsed time. It can be used to profile code execution and is useful for performance analysis. It implements theDisplayandDebugtraits for easy formatting and logging.