diff roundup/anypy/time_.py @ 7209:c1227f883177

Implement password hash testing using new roundup-admin perftest. Add new anypy/time_.py to provide a suitable definition for perf_counter for python2 or 3. Also update examples in upgrading.txt, man page, new translatable strings in locale.
author John Rouillard <rouilj@ieee.org>
date Fri, 03 Mar 2023 17:37:44 -0500
parents
children 07ce4e4110f5
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/roundup/anypy/time_.py	Fri Mar 03 17:37:44 2023 -0500
@@ -0,0 +1,6 @@
+try:
+    # Python 3+
+    from time import perf_counter
+except (ImportError, AttributeError):
+    # Python 2.5-2.7
+    from time import clock as perf_counter

Roundup Issue Tracker: http://roundup-tracker.org/