mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-29 05:03:34 +08:00
TTLInOut: timestamp -> timestamp_mu
This commit is contained in:
parent
820ff2da2c
commit
56fc7a484c
@ -195,7 +195,7 @@ class TTLInOut:
|
||||
return count
|
||||
|
||||
@kernel
|
||||
def timestamp(self):
|
||||
def timestamp_mu(self):
|
||||
"""Poll the RTIO input and returns an event timestamp, according to
|
||||
the gating.
|
||||
|
||||
|
@ -26,7 +26,7 @@ class RTT(EnvExperiment):
|
||||
delay(1*us)
|
||||
t0 = now_mu()
|
||||
self.ttl_inout.pulse(1*us)
|
||||
self.set_rtt(mu_to_seconds(self.ttl_inout.timestamp() - t0))
|
||||
self.set_rtt(mu_to_seconds(self.ttl_inout.timestamp_mu() - t0))
|
||||
|
||||
|
||||
class Loopback(EnvExperiment):
|
||||
@ -48,7 +48,7 @@ class Loopback(EnvExperiment):
|
||||
delay(1*us)
|
||||
t0 = now_mu()
|
||||
self.loop_out.pulse(1*us)
|
||||
self.set_rtt(mu_to_seconds(self.loop_in.timestamp() - t0))
|
||||
self.set_rtt(mu_to_seconds(self.loop_in.timestamp_mu() - t0))
|
||||
|
||||
|
||||
class ClockGeneratorLoopback(EnvExperiment):
|
||||
|
Loading…
Reference in New Issue
Block a user