latency use new api
Merge pull request #4 from zerdliu/master

latency use new api