'Stop value monitor.'

def stop(self):

    if self.started:
        self.started = False
        self.end_time = time.time()
        self.test_time = (self.end_time - self.start_time)
        self.value = self._get_value()
        if self.continuously:
            self.end_event.set()
            self.monitor.join()
        if self.mode_diff:
            self.value = map((lambda x, y: (x - y)), self.log[(-1)], self.log[0])
        else:
            self.value = map((lambda x: (x / self.num_of_get_value)), self.value)
