I find some errors when using \usepackage[timeinterval=1]{tdclock}while opening the SumatraPDF.
As zeniko says
The tdclock package only works in PDF readers supporting JavaScript, which SumatraPDF currently doesn't and likely never will.
so I want to find the package like tdclock which can be used in SumatraPDF
Ps: tdclock is used in beamer to show the clock.