Esempio n. 1
0
def PrintTimes():
    # type: () -> None
    utime, stime, cutime, cstime, elapsed = posix.times()
    print("%dm%1.3fs %dm%1.3fs" %
          (utime / 60, utime % 60, stime / 60, stime % 60))
    print("%dm%1.3fs %dm%1.3fs" %
          (cutime / 60, cutime % 60, cstime / 60, cstime % 60))
Esempio n. 2
0
    def Run(self, cmd_val):
        # type: (cmd_value__Argv) -> int
        utime, stime, cutime, cstime, elapsed = posix.times()
        print("%dm%1.3fs %dm%1.3fs" %
              (utime / 60, utime % 60, stime / 60, stime % 60))
        print("%dm%1.3fs %dm%1.3fs" %
              (cutime / 60, cutime % 60, cstime / 60, cstime % 60))

        return 0