use function setTimeout

Signed-off-by: Liu.Bo <bliu_923@hotmail.com>