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.
Registered users can post here. Sign in or register to post.