/* Returns the total number of whole microseconds in the specified timespan  */
int64_t timespanToMicroseconds(timespan_t *timespan)
/* Returns the total number of whole microseconds in the specified timespan  */
int64_t timespanToMicroseconds(timespan_t *timespan)
{
  return ((int64_t)timespanToMilliseconds(timespan) * 1000) + timespan->microseconds;
}