add win32 timer function and win32 api call