buildDuration property
The duration to build the frame on the UI thread.
The build starts approximately when Window.onBeginFrame is called. The
Duration in the Window.onBeginFrame callback is exactly the
Duration(microseconds: timestampInMicroseconds(FramePhase.buildStart))
.
The build finishes when Window.render is called.
To ensure smooth animations of X fps, this should not exceed 1000/X milliseconds.That's about 16ms for 60fps, and 8ms for 120fps.
Implementation
Duration get buildDuration => _rawDuration(FramePhase.buildFinish) - _rawDuration(FramePhase.buildStart);