private function durationToMs($duration)
    {
        if(!is_null($duration) && $duration instanceof QtiDuration){
            return TestRunnerUtils::getDurationWithMicroseconds($duration);
        }
        return false;
    }