Artifact
55faab2aaa756a7121c650a9e42ec748b24b3e64:
- File
win/tclWinTime.c
-
2017-02-09 13:45:14
— part of check-in
[a26ab7123b]
on branch sebres-trunk-timerate
— [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
(user:
sebres
size: 37844)
-
2017-02-09 13:50:27
— part of check-in
[83db271f3f]
on branch sebres-trunk-clock-speedup
— merge sebres-trunk-timerate
(user:
sebres
size: 37844)