implement simple timer for tests