- Home /
Reading CPU id & speed
Is there any way of getting the CPU speed information,
I know that there is SystemInfo which shows certain device information.
SystemInfo.processorType givs me "Intel(R) Core(TM) i5 CPU 760 @ 2.80GHz"
when i only want to know the speed of the processer itself.
P.S: If all CPU will give me the same answer i can just 'cut' the string where it says GHz but i don't know that
thanks in advance
Yea, extracting what you want from the string is the way to go. Probably you'll need to know how many cores too
Answer by yeoldesnake 1 · Jun 27, 2012 at 09:46 AM
You can use String.split to split a string into multiple ones.
var proc:String[];
proc=SystemInfo.processorType.Split("@"[0]);
And then the proccessor speed would be stored in proc[1].
Thats a nice handy function "Split()" you have there...
Your answer
Follow this Question
Related Questions
Accessing local system ( File Browser ) 2 Answers
Plane grid system resource demanding 1 Answer
My PC is not able to run Unity3D? 0 Answers