griblib_rust 0.1.1

A collection of utilities to convert GRIB2 data file
Documentation
use std::time::{SystemTime, UNIX_EPOCH};

pub mod gribtest;
pub mod gribtool;

fn main() {
    let start_ts = SystemTime::now().duration_since(UNIX_EPOCH).unwrap();
    #[allow(unused_variables)]
    let tasks = 10;
    let tasks = 1;
    let mut ret = 0;
    for n in 0..tasks {
        let hour = match n % 3 {
            1 => 11,
            2 => 20,
            _ => 8,
        };
        ret = gribtest::test_mi4text_gribs(hour, "", n + 1);
    }
    let end_ts = SystemTime::now().duration_since(UNIX_EPOCH).unwrap();
    let ts = end_ts - start_ts;
    eprint!(
        "Batch micaps4 to grib tasks - {}, {}, times: {:.2} / {:.2}",
        10,
        ret,
        ts.as_secs_f32(),
        ts.as_secs_f32() / tasks as f32
    );
}