Commit c5bd3bbb authored by Ranadeep Biswas's avatar Ranadeep Biswas
Browse files

parse history duration

parent d0c801be
extern crate dbcop;
use dbcop::db::history::History;
use std::env;
use std::fs::File;
use std::io::BufReader;
fn main() {
let file = File::open(env::args().nth(1).unwrap()).unwrap();
let buf_reader = BufReader::new(file);
let hist: History = bincode::deserialize_from(buf_reader).unwrap();
hist.get_duration().num_nanoseconds().unwrap() as f64 / 1_000_000_000f64
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment