How to convert cycles to milliseconds in Rational Quantify

Technote (FAQ)


Question

Does IBM Rational Quantify have a feature that allows the conversion of CPU cycles to milliseconds?

Cause

When saving a copy of your Rational Quantify dataset in export format (.qx), the time is displayed in CPU cycles. The export format will always be displayed in CPU cycles so that it can be read in again at a later time. However, if you were to infer the exact time taken by each function, CPU cycles would not be ideal.

Answer

Rational Quantify does not have a feature that allows the conversion of CPU cycles to milliseconds.

WORKAROUND:
There is a formula where you can convert this on your own:

  1. Divide the cycles by the clock rate of the machine in MHz to get microseconds.
  2. Divide the result by 1000 in order to get milliseconds as shown by the formula below:

    msec = (cycles/clockrate)/1000

For example, on a 2.993GHz machine, a function with 36040 cycles would convert as (36040/2993)/1000, which is 12.04143 usec or .01204 milliseconds.

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational Quantify
General Information

Software version:

7.0, 7.0.1

Operating system(s):

AIX, Linux, Solaris

Reference #:

1497195

Modified date:

2011-04-22

Translate my page

Machine Translation

Content navigation