fix microsec -> sec/nsec conversions
Merge pull request #94 from yamt/fix-duration

Fix microseconds to seconds/nanoseconds conversions