add a timing framework

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