Convert to nanoseconds for two Duration parameters
Merge pull request #54 from zsxwing/issue14

Convert to nanoseconds for two Duration parameters