change timing to clock_gettime

Signed-off-by: xiehuc <xiehuc@gmail.com>