添加StopTimer类和SafeCall类