Time bug work around
Henry Cejtin
henry@sourcelight.com
Mon, 16 Jul 2001 00:26:17 -0500
I didn't test this much, so make sure that the numbers you get back are sane,
but here is a file which defines a function `fixedGetrusage' which works
exactly like getrusage, but shouldn't display the Linux bugs in the user or
system times. Using this instead of getrusage and all the bugs should go
away.
begin 600 fixrusage.tgz
M'XL(`&YY4CL"`^U66V_;-A3V*_4KSE(DE3S'5E)W&9*E0.&Y65"C!7)Y*V`P
M$F6QEDF!E]KIVO^^0\KU->U;AV'@]Y"(/-^Y\IR3%'RAK*83ULU:/PLG:?I;
MOP\M`.B?IO[WR?+LT$_[9P!G+T[[_;/^B_0E2D_.7IZV(&W]"[#:4`70*IE0
MCS_D,:5;_SL\XR*K;,[@#_VH>X;/6+=\%6W?*J:E5=D3$L?7V]=,*2%WF$9Q
M,=F^LX)KD^_R<NY5HZC7CJ`-=R6#0E:5G*,^Y*S@@ALNA889G3(8P$PJ!G3&
M!'VH&!@)%&JKT'(7U7O1,Z_"R(.4%<E*J@@AO3:X(Z,"S&/--FF6"T.LT'PB
M6`[NX-BZE,J`0"\:@U&P(CAUO:5?23%9&W"G#=F^T/]P+JX&`V`+PU`HQ:;%
M1FG-_2'9^@Q7'MQI+?-9K(5-4ICBBB&D(;\T]:GDA&>T`L$FU)4;9,T4-9C[
MAC<J<G)TM*V02?'1BLSL!"85^?)EFYES_13S[N9^2.(4+B\A35:W;UZ/;O$:
M(P1'6`LJ*6LR+SF^?>PE2Q^RQE<RO(('Q>ATT\'P_2UY_B%]WD3#1'XLB^.F
M/WW!/)<7`NGDW?UHM%)T!Y(V:EQ\HA7/H9980-;HH"E>1.MZBXII'=<)X07X
MR/$[V1!C=$ZZ#'Z/D%&5RR*F"8DU_\S\)_1@^=W&TP89?2^YCO4KK)37E`=N
M])Z]-OR>;,_:MR<I^(+E5\PT?QKB!.92335\Q&4)%<?1FVS(V")CM7$V3$FQ
MJ0S0S%A:58^-6A?@NLNZ'2?))8Z,RU;;HL#2%4K.4(W!B`N[<#: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