Ejemplo n.º 1
0
 def get(self):
     """Read the current counter value. Read the value at this instant. It
     may still be running, so it reflects the current value. Next time it
     is read, it might have a different value.
     """
     if self.counter is None:
         raise ValueError("operation on freed port")
     return hal.getCounter(self.counter)
Ejemplo n.º 2
0
 def get(self):
     """Read the current counter value. Read the value at this instant. It
     may still be running, so it reflects the current value. Next time it
     is read, it might have a different value.
     """
     if self.counter is None:
         raise ValueError("operation on freed port")
     return hal.getCounter(self.counter)
Ejemplo n.º 3
0
 def get(self):
     """Read the current counter value. Read the value at this instant. It
     may still be running, so it reflects the current value. Next time it
     is read, it might have a different value.
     """
     return hal.getCounter(self.counter)