You can call "stop" method just after calling "start" method. However if there is a process to change the page on the application side in parallel with the SDK process, the failure of the measurement has occurred in the past. Then it must be implemented sequentially.
Here are examples according to SDK integration documentation:
<Place to implement "start" method>
<Place to implement "stop" method>