How to use a timer

Hey all

I'm writing a simple app that will turn off my computer after a user-defined time has passed. How do I use a timer in C++ (with minutes or hours, not seconds)? Any links to helpful resources are appreciated also.
Thanks lot.
Topic archived. No new replies allowed.