Add initial FnixLib development implementation
This commit is contained in:
commit
84742ae38e
33 files changed
+3340
No files matched your search
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* 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 */
|
||||
Reference in new issue
Block a user