Take sampling factor into account for duration data

Change-Id: If2af3995106e7d5ca85ba5dbbb429b951996f7e5