bpo-31904: Port the time module on VxWorks (GH-12305)

time.clock() is not available on VxWorks.
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
index 136ad29..3039189 100644
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -88,6 +88,8 @@
             check_ns(time.clock_gettime(time.CLOCK_REALTIME),
                      time.clock_gettime_ns(time.CLOCK_REALTIME))
 
+    @unittest.skipUnless(hasattr(time, 'clock'),
+                         'need time.clock()')
     def test_clock(self):
         with self.assertWarns(DeprecationWarning):
             time.clock()
@@ -549,7 +551,9 @@
         self.assertRaises(ValueError, time.ctime, float("nan"))
 
     def test_get_clock_info(self):
-        clocks = ['clock', 'monotonic', 'perf_counter', 'process_time', 'time']
+        clocks = ['monotonic', 'perf_counter', 'process_time', 'time']
+        if hasattr(time, 'clock'):
+            clocks.append('clock')
 
         for name in clocks:
             if name == 'clock':