moved timespec to nsec conversion to logging header