Returns the duration of the {If still active, returns `now() - start`.
API\SpanInterface} in nanoseconds.
public function getDuration() : int;