We have Flex/Java app with a typical scenario:
- Clicking the button
- Preparing request
- Sending request to the backend
- Receiving a response from the backend
- Rendering the respons开发者_JAVA百科e
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.
精彩评论