docs: public long getDuration(ITestContext context)
      {
          long duration = getDuration(context.getPassedConfigurations().getAllResults());
          duration += getDuration(context.getPassedTests().getAllResults());
          // You would expect skipped tests to have durations of zero, but apparently not.
          duration += getDuration(context.getSkippedConfigurations().getAllResults());
          duration += getDuration(context.getSkippedTests().getAllResults());
          duration += getDuration(context.getFailedConfigurations().getAllResults());
          duration += getDuration(context.getFailedTests().getAllResults());
          return duration;
      }