1 /* 2 * Copyright 2007, Ingo Weinhold, bonefish@cs.tu-berlin.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #include "compatibility.h" 7 8 #include "fssh_os.h" 9 #include "fssh_time.h" 10 11 #include <time.h> 12 13 #include <OS.h> 14 15 16 // #pragma mark - OS.h 17 18 #if 0 19 20 uint32_t 21 fssh_real_time_clock(void) 22 { 23 } 24 25 26 void 27 fssh_set_real_time_clock(uint32_t secs_since_jan1_1970) 28 { 29 } 30 31 32 fssh_bigtime_t 33 fssh_real_time_clock_usecs(void) 34 { 35 } 36 37 38 fssh_status_t 39 fssh_set_timezone(char *timezone) 40 { 41 } 42 43 #endif // 0 44 45 fssh_bigtime_t 46 fssh_system_time(void) 47 { 48 return system_time(); 49 } 50 51 52 // #pragma mark - time.h 53 54 55 fssh_time_t 56 fssh_time(fssh_time_t *timer) 57 { 58 time_t result = time(NULL); 59 if (timer) 60 *timer = result; 61 return result; 62 } 63