added clock library
fixed send return value