add calculate main thread delay time