added #define CLOCK_REALTIME 0