diff options
author | sebres <sebres@users.sourceforge.net> | 2017-02-09 13:45:14 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2017-02-09 13:45:14 (GMT) |
commit | 8dde174dd4188f1b4d55f6d88a01a1d3887f507b (patch) | |
tree | b5047ac8c5dbb28b0abc02d0c9d32893bae6ef97 /generic/tclIOCmd.c | |
parent | ca98340c4c69feed95b1823e8a83800a1ea8fae3 (diff) | |
download | tcl-8dde174dd4188f1b4d55f6d88a01a1d3887f507b.zip tcl-8dde174dd4188f1b4d55f6d88a01a1d3887f507b.tar.gz tcl-8dde174dd4188f1b4d55f6d88a01a1d3887f507b.tar.bz2 |
[win] accomplished winTime module using very fast wide clicks, with denominator scale to/from microseconds, and therefore more precise "timerate" results under windows (using similar mechanisms as by Mac OSX).
Especially multi-threaded, because it works without lock opposite to microseconds (that use crictical section, because of the calibration thread).
The reason for usage of wide clicks instead microseconds explains following example (shows 20% performance deference):
% timerate -calibrate {}
% timerate {clock microseconds} 5000
0.297037 µs/# 14465901 # 3366585 #/sec 4296.906 nett-ms
% timerate {clock clicks} 5000
0.247797 µs/# 16869084 # 4035554 #/sec 4180.116 nett-ms
Diffstat (limited to 'generic/tclIOCmd.c')
0 files changed, 0 insertions, 0 deletions