calculate the lifetime
Merge branch 'master' of https://github.com/luosaiyu/experiment