printf(" ** Setting sync interval to: %.9f seconds (%ld.%09ld)\n", sync_period, globals->sync_period.tv_sec, globals->sync_period.tv_nsec);
[...]
printf("announce master ...\n");
printf("[%ld.%09ld] announce master ...\n", last_check.tv_sec, last_check.tv_nsec);
[...]
Are these two things just relicts from your testing code?
Yes and no. I left them in because I figured they were useful additions to the main code.