Question

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?

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top