diff options
author | GrundleTrundle <gtrundle@sdf.org> | 2015-02-21 14:57:07 -0500 |
---|---|---|
committer | Patrick Kelley <Pat.Kelley@gmail.com> | 2015-02-21 15:18:39 -0500 |
commit | c41e0bdbe32f1f08951aef6e746265775b1ecba8 (patch) | |
tree | 68c7f7844976c2f1d90b5c00100a8dcb1ab5cbc6 /compiler/ast.nim | |
parent | 2abf3b717abfd623c89893e14037c34b73ef99f1 (diff) | |
download | Nim-c41e0bdbe32f1f08951aef6e746265775b1ecba8.tar.gz |
Changed nimprof.hook() to handle uninitialized t0
It's unlikely, but possible for the conversion to nanoseconds to overflow if QueryPerformanceCounter() returns a large enough timestamp. This change avoids that, at the cost of always taking a sample the first time through when t0 == 0.
Diffstat (limited to 'compiler/ast.nim')
0 files changed, 0 insertions, 0 deletions