diff options
| author | Heide Onas Auri <48419392+heidezomp@users.noreply.github.com> | 2020-02-24 00:25:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-23 18:25:52 -0500 |
| commit | 907c5589ae20d1b2a73acf26c9d67139dfe3bfb9 (patch) | |
| tree | b3943503d2a10c24545ddec92368fe66a5cc1faa /src/target.cpp | |
| parent | cfe1fbad0f6a47fa0f5798df1423702b84bf34aa (diff) | |
| download | zig-907c5589ae20d1b2a73acf26c9d67139dfe3bfb9.tar.gz zig-907c5589ae20d1b2a73acf26c9d67139dfe3bfb9.zip | |
std.time.Timer.lap: only read system time once (#4533)
Calling Timer.lap queried the system time twice; once to compute the lap
time and once to reset the timer. This can lead to time discrepancies
between actual and computed durations when summing the result of
Timer.lap in a loop. This commit fixes that.
also fix Timer.read to not require a pointer
Diffstat (limited to 'src/target.cpp')
0 files changed, 0 insertions, 0 deletions
