ImportError: can’t import name perf_counter. What may be the reason?

  Kiến thức lập trình

dear people and anybody else!

I`ve been working on my code for Micropython-flashed ESP8266, and well… this error occured:

from time import perf_counter

ImportError: can’t import name perf_counter

I believe that the whole code itself is irrelevant, as the problem occurs during the import itself.
What may be relevant though, is the list of functions imported, which looks strange to me:

import time
[‘class‘, ‘name‘, ‘dict‘, ‘gmtime’, ‘localtime’, ‘mktime’, ‘sleep’, ‘sleep_ms’, >’sleep_us’, ‘ticks_add’, ‘ticks_cpu’, ‘ticks_diff’, ‘ticks_ms’, ‘ticks_us’, ‘time’, ‘time_ns’]

Im currently using Python version 3.9.0

I have tried looking up the failure on google, but found only the older failures that are associated with time.clock removal and its later replacement with time.perf_counter.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website