From 0c32375287202d01cc12323402a6c6f55a8104a1 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Mon, 15 Jun 2020 17:51:43 -0400 Subject: moved startup timer to end of execution, as run timer --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6c38431..1286519 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,10 +21,6 @@ fn main() { println!("a community notices system"); println!(); - if *conf::DEBUG { - log::info!("Startup completed in {:?}ms", start.elapsed().as_millis()); - } - if arg_matches.subcommand_matches("post").is_some() { log::info!("New post..."); error::helper(posts::create(), "Error creating new post"); @@ -57,4 +53,8 @@ fn main() { } error::helper(posts::display(), "Error displaying posts"); + + if *conf::DEBUG { + log::info!("Run completed in {:?}ms", start.elapsed().as_millis()); + } } -- cgit 1.4.1-2-gfad0