diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2015-04-26 17:53:24 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2015-04-26 17:53:24 +0200 |
commit | 468c974e7bdbc068ad1771069e3e0adb35853ad5 (patch) | |
tree | 519d3b9a71d4c4b1310146eaded919a59d511dc7 /decoders/timing | |
parent | 92adde514e1be3015ebd44da813fb6bec0001370 (diff) | |
download | libsigrokdecode-468c974e7bdbc068ad1771069e3e0adb35853ad5.tar.gz libsigrokdecode-468c974e7bdbc068ad1771069e3e0adb35853ad5.zip |
timing: Shorten annotations (time units).
Diffstat (limited to 'decoders/timing')
-rw-r--r-- | decoders/timing/pd.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/decoders/timing/pd.py b/decoders/timing/pd.py index 5cb162f..6bca120 100644 --- a/decoders/timing/pd.py +++ b/decoders/timing/pd.py @@ -26,13 +26,13 @@ class SamplerateError(Exception): def normalize_time(t): if t >= 1.0: - return '%.3f sec' % t + return '%.3f s' % t elif t >= 0.001: - return '%.3f msec' % (t * 1000.0) + return '%.3f ms' % (t * 1000.0) elif t >= 0.000001: - return '%.3f usec' % (t * 1000.0 * 1000.0) + return '%.3f μs' % (t * 1000.0 * 1000.0) elif t >= 0.000000001: - return '%.3f nsec' % (t * 1000.0 * 1000.0 * 1000.0) + return '%.3f ns' % (t * 1000.0 * 1000.0 * 1000.0) else: return '%f' % t |