S
S_at_work
hello,
can anybody give me a piece of code , or a hint , how i can recieve the
time i need for connect() to another host in milliseconds.
My problem is i want test the performance of ipsec, so i need the
time in milliseconds, how long it takes to connect to another host
over ipsec.
1) i tried clock() but clock() don't work, because connect() don't use
cpu time like sleep(), so i always get 0 milliseconds, but the
connect takes about 2 seconds (i test this with a sniffer) .
is the any way to get the time in milliseconds ????
thanks a lot and best regards, stefan
can anybody give me a piece of code , or a hint , how i can recieve the
time i need for connect() to another host in milliseconds.
My problem is i want test the performance of ipsec, so i need the
time in milliseconds, how long it takes to connect to another host
over ipsec.
1) i tried clock() but clock() don't work, because connect() don't use
cpu time like sleep(), so i always get 0 milliseconds, but the
connect takes about 2 seconds (i test this with a sniffer) .
is the any way to get the time in milliseconds ????
thanks a lot and best regards, stefan