add static to timespec_to_nsec