0

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

user2373603
  • 11
  • 1
  • 3

1 Answers1

0

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.

James C
  • 14,047
  • 1
  • 34
  • 43