diff options
author | Ben Morrison <ben@gbmor.dev> | 2020-06-15 17:51:43 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2020-06-15 17:51:43 -0400 |
commit | 0c32375287202d01cc12323402a6c6f55a8104a1 (patch) | |
tree | d5feadcff77347c6fc8cd4b6026a523f3c86a301 | |
parent | fdab1b0117f1eccc99eb6c9415b66dc9ac2d0e3f (diff) | |
download | clinte-0c32375287202d01cc12323402a6c6f55a8104a1.tar.gz |
moved startup timer to end of execution, as run timer
-rw-r--r-- | src/main.rs | 8 |
1 files 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()); + } } |