change sample_test.cpp with timespan[C