Re: how find out CPU clockrate?

2004-01-09 Thread Palle Girgensohn
It a sound library, JACK. I dunno, I'll try commenting the code, see what happens... Thank, /Palle --On fredag, januari 09, 2004 17.42.15 -0600 Dan Nelson <[EMAIL PROTECTED]> wrote: In the last episode (Jan 10), Palle Girgensohn said: How can I programatically find out the CPU frequency? I'm

Re: how find out CPU clockrate?

2004-01-09 Thread James Long
On Sat, Jan 10, 2004 at 12:12:20AM +0100, Palle Girgensohn wrote: > > $ dmesg | grep -i hz > Timecounter "i8254" frequency 1193182 Hz > CPU: Pentium II/Pentium II Xeon/Celeron (349.20-MHz 686-class CPU) > > > Better ideas? Only slightly better, but: grep -w ^CPU: /var/run/dmesg.boot /sbin/dm

Re: how find out CPU clockrate?

2004-01-09 Thread Charles Swiger
On Jan 9, 2004, at 6:12 PM, Palle Girgensohn wrote: How can I programatically find out the CPU frequency? [ ... ] Better ideas? Here's a chunk of code from an old homework assignment from my days at CMU. :-) http://www.pkix.net/~chuck/clockspeed/ This uses an iterative method to achieve result

Re: how find out CPU clockrate?

2004-01-09 Thread Dan Nelson
In the last episode (Jan 10), Palle Girgensohn said: > How can I programatically find out the CPU frequency? > > I'm trying to port a program from Linux, and it uses /proc/cpuinfo. > > $ cat /compat/linux/proc/cpuinfo > cpu MHz : 349.20 > > Pretty neat, but it does not exist in FreeBSD,

how find out CPU clockrate?

2004-01-09 Thread Palle Girgensohn
Hi! How can I programatically find out the CPU frequency? I'm trying to port a program from Linux, and it uses /proc/cpuinfo. $ cat /compat/linux/proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 14 stepping: 2 flags : fpu vme