time ralated function test