From 331dbc971b2aa2876eddb237a37747c021efcf59 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 18 Aug 2014 22:52:54 +0800 Subject: [PATCH] language/units: add microcycle unit for core time --- artiq/language/units.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq/language/units.py b/artiq/language/units.py index d12c3e95b..a56ab7279 100644 --- a/artiq/language/units.py +++ b/artiq/language/units.py @@ -120,3 +120,6 @@ def _register_unit(name, prefixes): _register_unit("s", "pnum_") _register_unit("Hz", "_kMG") + +microcycle_unit = Unit("microcycle") +microcycle = Quantity(1, microcycle_unit)