I'm trying to get the CPU frequency in C:
#include unistd.h
#include time.h
#include ctype.h
#include sys/sysctl.h
#include stdio.h
#include sys/time.h
int main()
{
int mib[2];
size_t size;
struct clockinfo clockrate;
mib[0] = CTL_KERN;
mib[1] = KERN_CLOCKRATE;
size =
On Sun, Sep 09, 2007 at 10:50:25PM +0200, Martin Tournoij wrote:
I'm trying to get the CPU frequency in C:
#include unistd.h
#include time.h
#include ctype.h
#include sys/sysctl.h
#include stdio.h
#include sys/time.h
int main()
{
int mib[2];
size_t size;
struct
On Sun 09 Sep 2007 22:09, Erik Trulsson wrote:
On Sun, Sep 09, 2007 at 10:50:25PM +0200, Martin Tournoij wrote:
I'm trying to get the CPU frequency in C:
#include unistd.h
#include time.h
#include ctype.h
#include sys/sysctl.h
#include stdio.h
#include sys/time.h
int main()
On Monday 10 September 2007 00:04:45 Martin Tournoij wrote:
On Sun 09 Sep 2007 22:09, Erik Trulsson wrote:
On Sun, Sep 09, 2007 at 10:50:25PM +0200, Martin Tournoij wrote:
I'm trying to get the CPU frequency in C:
#include unistd.h
#include time.h
#include ctype.h
#include
On Mon, Sep 10, 2007 at 12:04:45AM +0200, Martin Tournoij wrote:
On Sun 09 Sep 2007 22:09, Erik Trulsson wrote:
On Sun, Sep 09, 2007 at 10:50:25PM +0200, Martin Tournoij wrote:
I'm trying to get the CPU frequency in C:
#include unistd.h
#include time.h
#include ctype.h
On Mon 10 Sep 2007 00:09, Erik Trulsson wrote:
On Mon, Sep 10, 2007 at 12:04:45AM +0200, Martin Tournoij wrote:
On Sun 09 Sep 2007 22:09, Erik Trulsson wrote:
On Sun, Sep 09, 2007 at 10:50:25PM +0200, Martin Tournoij wrote:
I'm trying to get the CPU frequency in C:
#include
On Monday 10 September 2007 00:52:08 Martin Tournoij wrote:
Thought you could only fetch the sysctl values defined in sys/sysctl.h
with sysctl()/sysctlbyname(), apparently not...
No, I believe those are guaranteed to be available (more to the point: made
available through