Module profiler

Source
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ยง

TimeLapse
The TimeLapse struct 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 the Display and Debug traits for easy formatting and logging.