2008/05/29

STLSoft // some thoughts regarding performance_counter

Well, I'm started to look at some useful functionality in STLSoft.

I'm not saying that I'm unhappy with the Boost C++ library, but since STLSoft pass to me with Pantheios (Boost still not having logging library) I'd give it a chance :-). You're know - options are good.

First, I come to platformstl.
There were something that I'm interested, particularly performance_counter and I'm was a little frustrated...

I've not found the options to get floating point interval representation/conversion.
Yeah, I know, I know... I can write it by myself by converting each time by multiply ms (.get_microseconds()) representation to 1E-6 for example. But I think this option should be embedded in STLSoft natively to make it usable.

A good example of performance counter present in Intel TBB.

How they differs?

Well create an example how to check performance with both libs...

--- code example --------

-------------------------

--- output -------------
0.000303 seconds our logger
0.000220881 seconds our logger
-------------------------------
First was STLSoft performance_counter.
Second was Intel TBB tick_count.

Intel TBB more accurate.

I think something similar should be added to STLSoft (or already added?)

Waiting for comments from Matt :-)
--
SN

2008/05/13

English part of my thoughts will be here...

Just to be sure if I'm on right track with my English practice :-)
Don't be afraid to blame me for mistakes in comments - I'll be very thankful