On Mon, 2015-09-21 at 13:25 +0800, Ning Yu wrote: > On Fri, Sep 18, 2015 at 5:35 PM, Ian Kent <raven@xxxxxxxxxx> wrote: > > Now that the monotonic clock source is used the elapsed() function > > is no longer used, remove it. > > > > Signed-off-by: Ian Kent <raven@xxxxxxxxxx> > > --- > > lib/rpc_subs.c | 8 -------- > > 1 file changed, 8 deletions(-) > > Oh, I think we also need to remove the declaration of elapsed() in > include/rpc_subs.h Ha, indeed we do. > > > > > diff --git a/lib/rpc_subs.c b/lib/rpc_subs.c > > index 2364744..3d99f56 100644 > > --- a/lib/rpc_subs.c > > +++ b/lib/rpc_subs.c > > @@ -1078,14 +1078,6 @@ int rpc_ping(const char *host, long seconds, long micros, unsigned int option) > > return status; > > } > > > > -double elapsed(struct timeval start, struct timeval end) > > -{ > > - double t1, t2; > > - t1 = (double)start.tv_sec + (double)start.tv_usec/(1000*1000); > > - t2 = (double)end.tv_sec + (double)end.tv_usec/(1000*1000); > > - return t2-t1; > > -} > > - > > double monotonic_elapsed(struct timespec start, struct timespec end) > > { > > double t1, t2; > > -- To unsubscribe from this list: send the line "unsubscribe autofs" in