140 |
142 |
141 return 0; |
143 return 0; |
142 } |
144 } |
143 |
145 |
144 |
146 |
145 |
147 #ifndef HAVE_WIRINGPI_H |
146 long millis(void) |
148 long millis(void) |
147 { |
149 { |
148 struct timespec now; |
150 struct timespec now; |
149 |
151 |
150 clock_gettime(CLOCK_REALTIME , &now); |
152 clock_gettime(CLOCK_REALTIME , &now); |
151 return ((now.tv_sec * 1000000000) + now.tv_nsec) / 1000000; |
153 return ((now.tv_sec * 1000000000) + now.tv_nsec) / 1000000; |
152 } |
154 } |
153 |
155 #endif |
154 |
156 |
155 |
157 |
156 void hlt_status(int value) |
158 void hlt_status(int value) |
157 { |
159 { |
158 #ifdef HAVE_WIRINGPI_H |
160 #ifdef HAVE_WIRINGPI_H |