Request processing time

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

vmnikulin
Posts: 26
Joined: 17 Feb 2012, 12:48

Request processing time

Postby vmnikulin » 02 Oct 2012, 03:32

Hello!

How know full request processing time that including request reading and writing time?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Request processing time

Postby Lapo » 02 Oct 2012, 08:09

Can you explain this better? You want to measure how long does a request take to be executed? Something else?
Lapo
--
gotoAndPlay()
...addicted to flash games
vmnikulin
Posts: 26
Joined: 17 Feb 2012, 12:48

Re: Request processing time

Postby vmnikulin » 02 Oct 2012, 10:59

Exactly.
Now I can only measure time how long my custom handler works. But this value doesn't include time of request reading, time waiting in incoming request queue etc.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Request processing time

Postby Lapo » 02 Oct 2012, 11:10

The roundtrip value will tell you that: it calculates the time from when you send the request from the client until the server response comes back.
To do this you need to get the system time before you send the request and then get the new system time when you get the reply. Subtract the latter from the former and that's your timing.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 51 guests