Files

21 lines
457 B
C

/*
* FnixLib - tiempo.
*/
#ifndef FNIX_TIME_H
#define FNIX_TIME_H
#include "fnix/types.h"
FNIX_BEGIN_DECLS
/* Segundos desde un origen arbitrario, con un reloj monótono (nunca retrocede).
* Sirve para medir intervalos, no para conocer la hora del día. */
double fnix_time_now(void);
/* Duerme el hilo actual al menos `seconds` segundos. Valores <= 0 no hacen nada. */
void fnix_time_sleep(double seconds);
FNIX_END_DECLS
#endif /* FNIX_TIME_H */