From 5d8cef4c0eec3718d92560337f9a1d4fcf04d01f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 31 Jul 2018 21:43:28 +0300 Subject: update text-unit --- cli/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/src') diff --git a/cli/src/main.rs b/cli/src/main.rs index 546cbb66b..ad7119533 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -7,6 +7,7 @@ extern crate tools; use clap::{App, Arg, SubCommand}; use std::{fs, io::Read, path::Path}; use tools::collect_tests; +use std::time::Instant; type Result = ::std::result::Result; @@ -32,7 +33,9 @@ fn main() -> Result<()> { .get_matches(); match matches.subcommand() { ("parse", _) => { + let start = Instant::now(); let tree = parse()?; + eprintln!("elapsed {:?}", start.elapsed()); println!("{}", tree); } ("render-test", Some(matches)) => { -- cgit v1.2.3