def read(self):

        if self.running:
            curr_time = time.time()
            curr_clock = time.clock()

            self.elapsed_time += (curr_time - self.start_elapsed_time)
            self.cpu_time += (curr_clock - self.start_cpu_time)
            self.start_elapsed_time = curr_time
            self.start_cpu_time = curr_clock

        return (self.elapsed_time, self.cpu_time)

#
# Exceptions
#
Read the stopwatch. Returns a tuple (elapsed_time, cpu_time).
dataset/ETHPy150Open GeoscienceAustralia/agdc/src/cube_util.py/Stopwatch.read