forked from M-Labs/artiq
TTLInOut: timestamp -> timestamp_mu
This commit is contained in:
parent
820ff2da2c
commit
56fc7a484c
|
@ -195,7 +195,7 @@ class TTLInOut:
|
||||||
return count
|
return count
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def timestamp(self):
|
def timestamp_mu(self):
|
||||||
"""Poll the RTIO input and returns an event timestamp, according to
|
"""Poll the RTIO input and returns an event timestamp, according to
|
||||||
the gating.
|
the gating.
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ class RTT(EnvExperiment):
|
||||||
delay(1*us)
|
delay(1*us)
|
||||||
t0 = now_mu()
|
t0 = now_mu()
|
||||||
self.ttl_inout.pulse(1*us)
|
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):
|
class Loopback(EnvExperiment):
|
||||||
|
@ -48,7 +48,7 @@ class Loopback(EnvExperiment):
|
||||||
delay(1*us)
|
delay(1*us)
|
||||||
t0 = now_mu()
|
t0 = now_mu()
|
||||||
self.loop_out.pulse(1*us)
|
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):
|
class ClockGeneratorLoopback(EnvExperiment):
|
||||||
|
|
Loading…
Reference in New Issue