briot / geneapro

Genealogical software based on the GenTech data model
http://briot.github.com/geneapro/
GNU General Public License v2.0
33 stars 8 forks source link

Replaced deprecated time.clock() with time.perf_counter(). #64

Closed changeling closed 4 years ago

changeling commented 4 years ago

time.clock() has been removed as of Python 3.8, which causes the server to fail.

See:

API and Feature Removals

The following features and APIs have been removed from Python 3.8:
...
    The function time.clock() has been removed, after having been deprecated since Python 3.3: use time.perf_counter() or time.process_time() instead, depending on your requirements, to have well-defined behavior. (Contributed by Matthias Bussonnier in bpo-36895.)

-- https://docs.python.org/3/whatsnew/3.8.html#time