Ejemplo n.º 1
0
 def run(self):
     timer = Timer(self._name)
     self._runImp()
     timer.stop()
     message = self._name + "(" + self._input_info + ")"
     if self._output_info is not "":
         message += "=> " + self._output_info
     message += ": " + str(timer.secs())
     print message
Ejemplo n.º 2
0
 def run(self):
     timer = Timer(self._name)
     self._runImp()
     timer.stop()
     message = self._name + "(" + self._input_info + ")"
     if self._output_info is not "":
         message += "=> " + self._output_info
     message += ": " + str(timer.secs())
     self._scene.setMessage(message)
Ejemplo n.º 3
0
    def run(self):
        for data_file in self._dataset_files:
            self._data_file_name = os.path.basename(data_file)
            self._data_name = os.path.splitext(self._data_file_name)[0]
            self._data_file = data_file
            timer = Timer(self._name)
            self._runImp()
            timer.stop()

            message = self._data_name + ":  " + str(timer.secs()) + "sec \n"
            message += "  " + self._input_info + "\n"
            if self._output_info is not "":
                message += "=> " + self._output_info
            print message
Ejemplo n.º 4
0
    def run(self):
        for data_file in self._dataset_files:
            self._data_file_name = os.path.basename(data_file)
            self._data_name = os.path.splitext(self._data_file_name)[0]
            self._data_file = data_file
            timer = Timer(self._name)
            self._runImp()
            timer.stop()

            message = self._data_name + ":  " + str(timer.secs()) + "sec \n"
            message += "  " + self._input_info + "\n"
            if self._output_info is not "":
                message += "=> " + self._output_info
            print message
Ejemplo n.º 5
0
    def runCharacter(self):
        if self._character_id >= len(self._character_dirs):
            return

        self._character_dir = self._character_dirs[self._character_id]

        self._character_name = os.path.basename(self._character_dir)

        timer = Timer(self._name)
        self._runCharacterImp()
        timer.stop()

        message = self._character_name + ":  " + str(timer.secs()) + "sec \n"
        message += "  " + self._input_info + "\n"
        if self._output_info is not "":
            message += "=> " + self._output_info
        print message

        self._character_id += 1
Ejemplo n.º 6
0
    def runCharacter(self):
        if self._character_id >= len(self._character_dirs):
            return

        self._character_dir = self._character_dirs[self._character_id]

        self._character_name = os.path.basename(self._character_dir)

        timer = Timer(self._name)
        self._runCharacterImp()
        timer.stop()

        message = self._character_name + ":  " + str(timer.secs()) + "sec \n"
        message += "  " + self._input_info + "\n"
        if self._output_info is not "":
            message += "=> " + self._output_info
        print message

        self._character_id += 1