Skip to content

ITikhonov/ghz-osx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Uses RDTSC processor instruction in a tight loop to measure how
much time it takes for CPU to churn a million clock ticks. Then
computes clock rate in GHz from this.


== Build


    $ curl -O https://raw.githubusercontent.com/ITikhonov/ghz-osx/master/clockspeed.c
    $ make clockspeed
    cc     clockspeed.c   -o clockspeed

== Run

    $ ./clockspeed 
    1.4 GHz


Releases

No releases published

Packages

No packages published

Languages