timing on main.c