hertz
The <hertz> object is useful to measure clock cycles. It is used primarily to measure clock frequency by the speed of the processor inspector. Hertz objects have a resolution of 1 hertz and are stored internally as a 64 bit signed integer.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Creation
Returns the rate at which the performance counter is being incremented per second. This value comes from the QueryPerformanceFrequency function.
- Q: performance counter frequency of operating system
- A: 2938672 hertz
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Returns the speed of the processor in Hertz. As of macOS Big Sur, this property is not available on computers using the Apple M1 chip.
For example, running the inspector on a computer with an Intel Core i7-4770HQ CPU (4 cores, 8 threads) returns:
- Q: speeds of processors
- A: 2200000000 hertz
- A: 2200000000 hertz
- A: 2200000000 hertz
- A: 2200000000 hertz
- A: 2200000000 hertz
- A: 2200000000 hertz
- A: 2200000000 hertz
- A: 2200000000 hertz
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Properties
Returns the value of a hertz object with <integer> significant digits (for example. significant digits 3 of 1235569 = 1240000).
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |