timer copy from pyMor