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