im trying to calculate the bandwidth of a network
currently i am measure the time taken for a message, that varies in sizes to be sent to the machine and back, a ping,
here is the that does that :
this is the code i am using to measure the ping :
EDIT, Now using the code in the comment below
How can i measure the bandwidth of the system, i did ask a simular question before, but could not get it to work
it must be done in java, its for a project
Thanks