Question

I am developing a project in which i am creating a socket using fsockopen() in a php script to connect to a java server on the same machine only. Is there anyway to know time it takes for a response to be returned for a request made to the java server ? sorry for the bad english..an yhelp or guidance appreciated

Was it helpful?

Solution

If you just need to do this as a one-off you could either use xdebug to profile a request or strace on the process with timing enabled. A more crude method to time this would be to compare microtime() values before/after the call.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top