def _EncodeFile(self, parameters, bitrate, videofile, encodedfile):
    commandline = self.EncodeCommandLine(
      parameters, bitrate, videofile, encodedfile)

    print commandline
    with open(os.path.devnull, 'r') as nullinput:
      times_start = os.times()
      returncode = subprocess.call(commandline, shell=True, stdin=nullinput)
      times_end = os.times()
      subprocess_cpu = times_end[2] - times_start[2]
      elapsed_clock = times_start[4] - times_end[4]
      print "Encode took %f CPU seconds %f clock seconds" % (
          subprocess_cpu, elapsed_clock)
      if returncode:
        raise Exception("Encode failed with returncode %d" % returncode)
      return (subprocess_cpu, elapsed_clock)
dataset/ETHPy150Open google/compare-codecs/lib/file_codec.py/FileCodec._EncodeFile/swapped operands of `-`