I am having a compilation error saying invalid useof template-name 'Timer without an argument list.

Read, play with, and understand the Arduino BlinkWithoutDelay basic example. Understand means learn that it does not only apply to blinking, but to any time related action without blocking the main loop().
It's better learning the basics than using libraries in a wrong way.
{}button to format it correctly. And third: You should include the complete error message (as text like the code) into your question. Also provide links to the Timer library, that you are using.timerlibrary are you talking about? Have you looked at its doc/examples ?