src/Carbon/Traits/Difference.php
public function diffInRealMicroseconds($date = null, $absolute = true)
    {
        /** @var CarbonInterface $date */
        $date = $this->resolveCarbon($date);
        $value = ($date->timestamp - $this->timestamp) * static::MICROSECONDS_PER_SECOND +
            $date->micro - $this->micro;

        return $absolute ? abs($value) : $value;
    }
public function diffInRealMicroseconds($date = null, $absolute = true)
    {
        /** @var CarbonInterface $date */
        $date = $this->resolveCarbon($date);
        $value = ($date->timestamp - $this->timestamp) * static::MICROSECONDS_PER_SECOND +
            $date->micro - $this->micro;

        return $absolute ? abs($value) : $value;
    }
public function diffInRealMicroseconds ( $ date = null , $ absolute = true ) { /** @var CarbonInterface $date */ $ date = $ this -> resolveCarbon ( $ date ) ; $ value = ( $ date -> timestamp - $ this -> timestamp ) * static :: MICROSECONDS_PER_SECOND + $ date -> micro - $ this -> micro ; return $ absolute ? abs ( $ value ) : $ value ; }
Get the difference in microseconds using timestamps.

@param Carbon|\DateTimeInterface|string|null $date
@param bool                                  $absolute Get the absolute of the difference

@return int
Get the difference in microseconds using timestamps .