Esempio 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)
Esempio 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)
Esempio 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)