X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Ftimer.c;h=86a2d1984cd06ad5dec760ba572def3978ea8051;hb=d1a5b69d490ce61a0f41db08263580487720bf2f;hp=7aacaf686b35625e62eff917119ab544de116836;hpb=1571781022499a9d0c32d249f89945d034d1cbff;p=libucw.git diff --git a/lib/timer.c b/lib/timer.c index 7aacaf68..86a2d198 100644 --- a/lib/timer.c +++ b/lib/timer.c @@ -1,7 +1,10 @@ /* - * Sherlock Library -- Execution Timing + * UCW Library -- Execution Timing * * (c) 1997 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #include "lib/lib.h" @@ -41,3 +44,9 @@ init_timer(void) { gettimeofday(&last_tv, NULL); } + +void +get_last_timeval(struct timeval *tv) +{ + *tv = last_tv; +}