add latency
Merge pull request #3 from zerdliu/master

add latency