elapsedSeconds property

int get elapsedSeconds

elapsed in whole seconds, rounded up, as the AI Elements reasoning summary counts them: any measured time reads as at least one second.

Implementation

int get elapsedSeconds {
  final microseconds = elapsed.inMicroseconds;

  return (microseconds + Duration.microsecondsPerSecond - 1) ~/
      Duration.microsecondsPerSecond;
}