i use sendto and receivefrom functions to ping a host
ex:
sendto(host)
timestart = datetime.now
receivefrom(buf,edp)
timestop = datetime.now - timestart

but the time was too long ,when i ping localhost the time is 56ms
how can reduce the time?