aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_list.zig
diff options
context:
space:
mode:
authorHeide Onas Auri <48419392+heidezomp@users.noreply.github.com>2020-02-24 00:25:52 +0100
committerGitHub <noreply@github.com>2020-02-23 18:25:52 -0500
commit907c5589ae20d1b2a73acf26c9d67139dfe3bfb9 (patch)
treeb3943503d2a10c24545ddec92368fe66a5cc1faa /lib/std/array_list.zig
parentcfe1fbad0f6a47fa0f5798df1423702b84bf34aa (diff)
downloadzig-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 'lib/std/array_list.zig')
0 files changed, 0 insertions, 0 deletions