문제

We have Flex/Java app with a typical scenario:

  1. Clicking the button
  2. Preparing request
  3. Sending request to the backend
  4. Receiving a response from the backend
  5. Rendering the response

How can I measure time from the start of step 1 to end of step 5?

도움이 되었습니까?

해결책

The most common approach would be to use the getTimer() method. Call it when you click the button; and call it again when you finish rendering the response. Compare the two values to get the amount of time that has passed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top