Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
validate.py: Replace deprecated time.clock() calls (eiffel-community#251
) time.clock() is deprecated and removed in Python 3.8. It was replaced by time.process_time() and time.perf_counter() in Python 3.3. Replace the calls in examples/validate.py with time.perf_counter(). This drops support for Python 2 so the shebang is adjusted (not that the shebang is very useful for this non-executable file). This also fixes what probably was an unintentional buglet; on Linux time.clock() returned the elapsed CPU time but on Windows it returned the elapsed time. Since the number was seemingly used to report the validation progress every five seconds the behavior was only correct on Windows.
- Loading branch information