Add an option to compute duration of files.
Merge branch 'duration'