Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Commit

Permalink
Use timeit.default_counter() instead of time.clock() (deprecated on P…
Browse files Browse the repository at this point in the history
…ython 3.3+)
  • Loading branch information
noirbizarre committed Mar 4, 2019
1 parent e2f3894 commit cc242c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commonmark/tests/run_spec_tests.py
Expand Up @@ -2,7 +2,7 @@
# coding: utf-8
from __future__ import division, print_function, unicode_literals
import re
import time
import timeit
import codecs
import argparse
import sys
Expand Down Expand Up @@ -124,7 +124,7 @@ def showSpaces(t):

current_section = ""

startTime = time.clock()
startTime = timeit.default_timer()

if args.i:
print(
Expand Down Expand Up @@ -223,7 +223,7 @@ def showSpaces(t):

print('\n' + str(passed) + ' tests passed, ' + str(failed) + ' failed')

endTime = time.clock()
endTime = timeit.default_timer()
runTime = endTime - startTime

if args.s:
Expand Down

0 comments on commit cc242c4

Please sign in to comment.