Add duration in seconds
abstract out duration
Merge pull request #53 from charlier/duration_in_seconds

Add duration in seconds