Depends on the SDK you are using.  In HAL 0. 6. 0 - HAL_Delay (1000) .  In W80x-SDK you can pull the delay ()  function from iperf_timer. c
It usually works in microseconds.  But delay maybe not less than 1 milliseconds.  It will look like this for you
extern int delay (int us) ; 
//your code
int ms = 1000;  //1s = 1000 ms
delay (ms*1000) ;  // in uS
//your code
If you need to call a specific function every 1 second,  you can use vApplicationTickHook or RTOS timers
For example
in vApplicationTickHook ()  you can creat a counter
Or create a separate RTOS task