Overview
| Artifact ID: | 20e2acfe5411fcf1e974504fa2f015c288d480d4 |
|---|---|
| Ticket: | b87ad7e9146832d505f9a430d779c5313c440256
NativeGetTime time-drifts bug (fixed) |
| User & Date: | sebres on 2017-01-06 17:01:16 |
Changes
- icomment:
> My only remark, on the "do {...} while(0)": Please don't do that, just leave the variable "struct _timeb t" at the top of the function, where it originally was. The goal is to declare <b>normally unused</b> variable "struct _timeb t" as close to local use as possible... This new scope allows: - better to read if variable declared pair rows above where it'll be used only (and not at begin of possibly large procedure). - more chances the compiler optimized such code as fast as possible (e. g. by -O2 or -O3, -Ofast it will use stack resp. registers already unused elsewhere above). It is most important (by nearby real-time purposes) and sometimes often used function, so I'll appreciate to do that, if no another objections. But if you want, I can replace the do...while(0) scope with the bare braces scope... (I mean I saw some obsolete compilers, that don't like bare braces scopes). - login: "sebres"
- mimetype: "text/plain"