PolyFuzz icon indicating copy to clipboard operation
PolyFuzz copied to clipboard

Update timing.py resource file

Open PandaSanchez opened this issue 2 years ago • 1 comments

Hi -- I'm using Python 3.10. The 'time.clock()' method in timing.py is being (has been) deprecated. This breaks polyfuzz upon importing your module. To make it work, I changed the following line of code, locally (see line 64 in timing.py):

  • From: clocku = clocks = clock = time.clock()
  • To: clocku = clocks = clock = time.perf_counter()

Not sure if this is correct, though. Just wanted to surface the issue in case anyone's using a more recent version of Python.

PandaSanchez avatar Jan 10 '22 17:01 PandaSanchez

Could you share the full error message when importing PolyFuzz? As of right now, I do not believe the time module is directly used in PolyFuzz so bug fixing might be a bit more difficult without knowing where exactly the module is used.

MaartenGr avatar Jan 11 '22 06:01 MaartenGr