Oh well, first off, i believe most functions that takes time input, is measured in milliseconds, not seconds, 1 second = 1000 millisecond.
Also, all you need for your timing is dbTimer();, it returns time since the application have started, for example, let's say you want your program to do an action every 2 seconds, this code should explain it:
int timer = dbTimer ( );
while ( LoopGDK ( ) )
{
if ( timer + 2000 < dbTimer ( ) ) //2 seconds = 2000 milliseconds
{
timer = dbTimer ( );
//
//do the action here
//
}
}
So as you see, every 2000 milliseconds ( 2 seconds ) we set timer variable to dbTimer, and do the action