Skip to main content

print_final_step

Function print_final_step 

Source
pub fn print_final_step(step: &str, success: bool, duration: Duration)
Expand description

Display the final initialization step with status and timing

Similar to print_step but uses a different end tree character.

§Arguments

  • step - A string describing the final initialization step being performed.
  • success - A boolean indicating whether the step succeeded (true) or failed (false).
  • duration_ms - The time taken to complete the step, in milliseconds.

§Example

let timer = create_timer();
print_final_step("Starting server", true, elapsed_ms(timer));