I've created a simple sketch that provides a way to get microseconds in a timestamp. I'm interested in any alternatives.
Does the setSyncInterval() function create an interrupt so the microsecond reset counter is always called on time?
#include <TimeLib.h>

elapsedMicros microsecondsPerSecond;

time_t getTeensy3Time(){
  microsecondsPerSecond = 0; // Reset the microsecond timer
  return Teensy3Clock.get();

void setup() {
  // put your setup code here, to run once:
  setSyncInterval(1); //must be on a 1 second interval to get the microseconds to sync.

void loop() {
  // put your main code here, to run repeatedly:
  char timeString[22];
  sprintf(timeString,"%04d-%02d-%02d %02d:%02d:%02d.%06d",year(),month(),day(),hour(),minute(),second(),uint32_t(microsecondsPerSecond));