We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15e3094 commit 3ebce9aCopy full SHA for 3ebce9a
src/main.rs
@@ -4,6 +4,7 @@ extern crate yaml_rust;
4
use std::io::Read;
5
use std::fs::File;
6
use std::env;
7
+use std::time::Instant;
8
use quick_xml::Reader;
9
use quick_xml::events::Event;
10
use yaml_rust::YamlLoader;
@@ -86,6 +87,7 @@ fn main() {
86
87
let mut gmldims: u8 = 2;
88
let mut gmlpos = false;
89
let mut ewkb: Vec<u8> = Vec::new();
90
+ let start = Instant::now();
91
loop {
92
match reader.read_event(&mut buf) {
93
Ok(Event::Start(ref e)) => {
@@ -249,5 +251,5 @@ fn main() {
249
251
}
250
252
buf.clear();
253
- eprintln!("{} rows processed", count);
254
+ eprintln!("{} rows processed in {} seconds", count, start.elapsed().as_secs());
255
0 commit comments