function time = tv2sec(tv) sec = tv(1); usec = tv(2); time = sec + 1e-6 * usec;