provide sleep timer class for semaphore sharing