mesa.time was removed in version 3 (see the migration docs).
There are two option.
for instance:
import time
or,
pip install mesa == 2.3.2