Which timer library to use for several seconds of delay

guix:
unsigned int elapsed;
...
void InvertState( unsigned int duration )
...