Google App Engine - Figure out the time the current request reached the app engine

Posted by Spines on Stack Overflow See other posts from Stack Overflow or by Spines
Published on 2010-03-14T22:26:33Z Indexed on 2010/03/15 9:29 UTC
Read the original article Hit count: 682

Filed under:
|

Is there a way I can figure out the time the current request reached the app engine?

For example a user might make a request to my app, but due to app engine latencies my code might not start handling the request until one second later, is there a way I can figure out that the user has already had to wait one second?

The reason I want to know how to do this is because I want to do different things based on if the user already had to wait. If the user already had to wait a significant amount of time I will just serve them a page out of the cache, if the user hasn't had to wait yet then I will serve them a page which takes a while to render.

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about java