示例#1
0
 def test_py3(self):
     """
     Use time.perf_counter on Python 3
     """
     assert (
         _util.get_time is
         time.perf_counter is
         _util.mk_get_time()
     )
示例#2
0
 def test_py2(self):
     """
     Use monotonic.time on Python 2
     """
     import monotonic
     assert (
         _util.get_time is
         monotonic.time is
         _util.mk_get_time()
     )
示例#3
0
 def test_py3(self):
     """
     Use time.perf_counter on Python 3
     """
     assert (_util.get_time is time.perf_counter is _util.mk_get_time())
示例#4
0
 def test_py2(self):
     """
     Use monotonic.time on Python 2
     """
     import monotonic
     assert (_util.get_time is monotonic.time is _util.mk_get_time())