add new methods in Timer and WinAPI classes