Bug in GEC time measurement
Wolfgang Jansen <[email protected]> Sat, 17 Jan 2015 19:22:47 +0100
| Newsgroups | gmane.comp.lang.eiffel.gobo.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============3144066359862776497== Content-Type: multipart/alternative; boundary="------------010404050508010708060006" This is a multi-part message in MIME format. --------------010404050508010708060006 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by smtpa.mediabeam.com id t0HIMlDh026567 Hi Eric, today I found a minor bug (really, a milli or micro bug) in GEC=20 concerning time measurement. File $GOBO/tool/gec/runtime/c/ge_time.h defines `GE_timebmillitm' in=20 case of `HAS_GETTIMEOFDAY' as "((struct timeval*)(p))->tv_usec". But `timeval.tv_usec' is in microseconds, not in milliseconds. So the=20 definition should be replaced by "((struct timeval*)(p))->tv_usec/1000". Maybe, the "u" in "usec" is to be understood as ASCII approximation to=20 Greek "=C2=B5". Best regards Wolfgang --=20 Dr. Wolfgang Jansen Lauenburger Stra=C3=9Fe 40 D-12169 Berlin Tel: (+49) 0172 40 86 916 e-mail: [email protected] --------------010404050508010708060006 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by smtpa.mediabeam.com id t0HIMlDh026567 <html> <head> <meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf= -8"> </head> <body bgcolor=3D"#FFFFFF" text=3D"#000000"> <font face=3D"DejaVu Sans Mono">Hi Eric, <br> <br> today I found a minor bug (really, a milli or micro bug) in GEC concerning time measurement. <br> File $GOBO/tool/gec/runtime/c/ge_time.h defines `GE_timebmillitm' in case of `HAS_GETTIMEOFDAY' as<br> "((struct timeval*)(p))->tv_usec". <br> But `timeval.tv_usec' is in microseconds, not in milliseconds. So the definition should be replaced by <br> "((struct timeval*)(p))->tv_usec/1000".<br> <br> Maybe, the "u" in "usec" is to be understood as ASCII approximation to Greek "=C2=B5".<br> <br> Best regards<br> Wolfgang<br> </font> <pre class=3D"moz-signature" cols=3D"72">--=20 Dr. Wolfgang Jansen Lauenburger Stra=C3=9Fe 40 D-12169 Berlin Tel: (+49) 0172 40 86 916 e-mail: <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:wo.jansen@ka= belmail.de">[email protected]</a></pre> </body> </html> --------------010404050508010708060006-- --===============3144066359862776497== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet --===============3144066359862776497== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gobo-eiffel-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gobo-eiffel-develop --===============3144066359862776497==--