extern crate sonos_discovery;

use sonos_discovery::Discover;
use std::time::Instant;

fn main() {
    let start_time = Instant::now();

    let discovery = Discover::new().unwrap();
    let ips = discovery.start(None, Some(3)).unwrap();
    for ip in ips {
        println!("{:?}", ip)
    }

    println!("\nTime: {:?}", start_time.elapsed())
}

extern crate sonos_discovery;

use sonos_discovery::Discover;

fn main() {
    let discovery = Discover::new().unwrap();
    let devices = discovery.start(None, Some(3)).unwrap();
    for device in devices {
        println!("{:?}", device)
    }
}

--- 
+++ 
@@ -1,11 +1,16 @@
 extern crate sonos_discovery;
 
 use sonos_discovery::Discover;
+use std::time::Instant;
 
 fn main() {
+    let start_time = Instant::now();
+
     let discovery = Discover::new().unwrap();
-    let devices = discovery.start(None, Some(3)).unwrap();
-    for device in devices {
-        println!("{:?}", device)
+    let ips = discovery.start(None, Some(3)).unwrap();
+    for ip in ips {
+        println!("{:?}", ip)
     }
+
+    println!("\nTime: {:?}", start_time.elapsed())
 }
Add elapsed time to binary
