[haiku-development] Re: cpu_clock_speed -- why gone?

  • From: Ralf Schülke <ralf.schuelke@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 18 Mar 2017 23:23:38 +0100

Why shold artpaint used CPU clock speed.

Am 18.03.2017 11:21 nachm. schrieb "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>:

Am 18.03.2017 um 23:12 schrieb Rene Gollent:

Just about every CPU sold today does that. Power management is handled
on a per-core basis, and as such, depending on how idle one is, each
core can be running at a lower frequency than its nominal clock speed
at any given point in time. As such, in the long run ArtPaint really
should probably adopt a more intelligent approach than assuming clock
speed = performance.


Sure, but it should expect that the CPU might change its frequency during
execution of some computationally intensive code.
However, I don't think Pavel has offered an API to even retrieve the
current clock speed; there is only one to get the 'default' speed which
doesn't really tell it all.

In any case, the clock speed should not be used for anything but dumping
system information. If you have time critical code, you should test the
actual code to get an idea of its execution speed.

Bye,
   Axel.


Other related posts: