add timing.cpp
update timing.cpp