How do i actually run a timer for my program.

I want to count in seconds but i do not know how to use gettickcount.

someone teach me please ?