[Git][NTPsec/ntpsec][master] Add more Python 'constants'
Gary E. Miller
gitlab at mg.gitlab.com
Thu Mar 16 18:33:56 UTC 2017
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
764ec4ff by Gary E. Miller at 2017-03-16T11:33:29-07:00
Add more Python 'constants'
- - - - -
1 changed file:
- ntpclients/ntpviz
Changes:
=====================================
ntpclients/ntpviz
=====================================
--- a/ntpclients/ntpviz
+++ b/ntpclients/ntpviz
@@ -56,7 +56,9 @@ ntpviz: can't find the Python argparse module
sys.exit(1)
# believe it or not, Python has not way to make a simple constant!
+MS_PER_S = 1e3 # micro seconds per second
NS_PER_S = 1e9 # nano seconds per second
+US_PER_S = 1e6 # micro seconds per second
S_PER_MS = 1.0e-3 # seconds per microsecond
S_PER_NS = 1.0e-9 # seconds per nanosecond
S_PER_US = 1.0e-6 # seconds per microsecond
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/764ec4ffcbaadc172cab4c5b45c350d9f6b416b0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170316/25f3bc46/attachment.html>
More information about the vc
mailing list