modified times in gpio.c

added time.c to get nanoseconds