X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ftimer.c;h=86a2d1984cd06ad5dec760ba572def3978ea8051;hb=8ab69f51fccccbcae521bd7f7e3ae27146fd1217;hp=42cc9ebc366ff59b00c6fd1ad67b172e0710a95a;hpb=49ed04e2e93a6a5b01058638224621d5c07db01c;p=libucw.git diff --git a/lib/timer.c b/lib/timer.c index 42cc9ebc..86a2d198 100644 --- a/lib/timer.c +++ b/lib/timer.c @@ -1,5 +1,5 @@ /* - * Sherlock Library -- Execution Timing + * UCW Library -- Execution Timing * * (c) 1997 Martin Mares * @@ -44,3 +44,9 @@ init_timer(void) { gettimeofday(&last_tv, NULL); } + +void +get_last_timeval(struct timeval *tv) +{ + *tv = last_tv; +}