1.add method can change duration
Merge pull request #1 from Haoxiqiang/master

1.add  method can change duration