4 ms·
how about being portable to non-Intel platform? Really, nothing new to see...
by bogolisk 12y ago
how about being portable to non-Intel platform?
Really, nothing new to see...
- apaprocki 12y agoHere's our (Bloomberg) version of this. The bsls::TimeUtil component is used to implement the bsls::Stopwatch. It supports high-res timestamps on OSX/Windows as well as Solaris, AIX, and HP-UX (SPARC, POWER, IA64). It's a good base to start from and we'll continually tweak it for more performance as platforms change (I think there a few patches in the pipeline). https://github.com/bloomberg/bde/blob/master/groups/bsl/bsls/bsls_timeutil.cpp#L540 https://github.com/bloomberg/bde/blob/master/groups/bsl/bsls... Component docs: http://bloomberg.github.io/bde/group__bsls__timeutil.html http://bloomberg.github.io/bde/group__bsls__timeutil.html