code: function (durationInNanoSeconds) {
          // convert it to MILLI_SECONDS
          var durationInMillis = _.floor(durationInNanoSeconds / 1000000);
  
          var oneMilliSecond = 1000;
          var oneMinute = 60 * oneMilliSecond;
          var formattedDuration = '0s';
  
          function format(min, sec, ms) {
              var MINUTES = 'm ';
              var SECONDS = 's ';
              var MILLI_SECONDS = 'ms';
              var formattedTimeStamp = '';
  
              min > 0 ? formattedTimeStamp += min + MINUTES : '';
              sec > 0 ? formattedTimeStamp += sec + SECONDS : '';
              ms > 0 ? formattedTimeStamp += ms + MILLI_SECONDS : '';
  
              return formattedTimeStamp.trim().length === 0 ? '< 1ms' : formattedTimeStamp;
          }
  
          if (!isNaN(durationInMillis)) {
  
              var min = _.floor(durationInMillis / oneMinute);
              var sec = _.floor((durationInMillis % oneMinute) / oneMilliSecond);
              var ms = durationInMillis % oneMilliSecond;
  
              formattedDuration = format(min, sec, ms);
          }
  
          return formattedDuration;
      }
docs: Make human-readable duration for scenario steps
  Sample Input: "2005366787"
  Sample Output: "2s 5ms"