00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __OSKA_TIME_H
00010 #define __OSKA_TIME_H
00011
00012 #ifdef __OSKA_API_DOC
00013
00029 unsigned long os_current_time_ms(void);
00030
00040 int os_sleep_ms(unsigned ms);
00041
00054 int os_delay_us(unsigned us);
00055
00068 bool os_time_after(unsigned long a, unsigned long b);
00069
00070 #endif
00071
00072 #ifdef linux
00073 # include <../linux/time.h>
00074 #elif defined(ZSDE)
00075 # include <../zoran/time.h>
00076 #elif defined(KMDF_MAJOR_VERSION)
00077 # include <../windows/kmdf/time.h>
00078 #else
00079 # error <oska/time.h> not provided for this OS
00080 #endif
00081
00082
00083
00084
00085
00086 #ifndef os_time_after
00087 # define os_time_after(a, b) ((long)(b) - (long)(a) < 0)
00088 #endif
00089
00090 #endif