How do you calculate time ?

Hello , I want to calculate time . Lets say when the program starts, time starts counting. And every three seconds an event happens like display "hello" etc.
I know I need to use the time.h library.
Topic archived. No new replies allowed.