Added to_string function for timeval. Optional fmt string is mostly
strftime, but the function will look for %f and replace it with
tv_usec in the timeval. It's not as smart as the strftime version,
though -- you can't specify a format size or anything like that.