about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander <alexanderkabua@gmail.com>2022-05-26 22:00:24 +0300
committerAlexander <alexanderkabua@gmail.com>2022-05-26 22:00:24 +0300
commitc5efda5ef051e3c0ee0cd48be67866855f47c678 (patch)
treef2aa8146df68e75a37d3a70971c2334618e1eac2 /src
parentacfb3e7ab282575e758d5a293b869c1d64b8e4bb (diff)
downloadcorrelation_rust-c5efda5ef051e3c0ee0cd48be67866855f47c678.tar.gz
debug code for elapsed time
Diffstat (limited to 'src')
-rw-r--r--src/main.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 6ff1439..31324dc 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,6 +1,10 @@
 use std::env;
 use correlation_rust::analysis::Analysis;
 fn main () {
+
+    use std::time::Instant;
+    let now = Instant::now();
+
     match env::args().nth(1){
         Some(tmp_file) => {
          
@@ -12,4 +16,8 @@ fn main () {
         None => panic!("expected an arugment for the json file")
     };
 
+
+    let elapsed = now.elapsed();
+    println!("Elapsed:>>>>>>>>>>>>>>>>>>>>{:.2?}", elapsed);
+
 }