Slavko Kocjancic pravi:
>
>
> 2010/3/31 Jeff Epler <[email protected] 
> <mailto:[email protected]>>
>
>     .time and .tmax (as well as the numbers in halcmd show thread) are in
>     CPU cycles, not ns.  Some versions of rtai performed very poorly when
>     requesting the current time, so we switched to using the TSC.  Is it
>     possible that your system is 2GHz or so?
>
>     If you saw a mention of .time and .tmax in the documentation,
>     please let
>     us know so that we can fix it.
>
>     Jeff
>
>
> nx9005 laptop. Confused about speed. Somewhere is writen 2,4GHz and on 
> other 1,8GHz. I wote for 1,8
>
> Is there a way to measure the speed of cpu and after that use to show 
> time in nseconds? Or at least in window put text nnnnnn cycles.
>
> Slavko
I'm wrong... It's 2.12GHz I write simple FreeBasic program to check.
The .time and .tmax is in documentation and already says that time is in 
cycles. So all that is my mistake as I didn't read manual carefuly enought.




'cpuspeed program

dim t as double
dim cyc1 as uLongInt
dim cyc2 as uLongInt

Function ReadRdtsc() As uLongInt
    Asm
        rdtsc
        mov [Function], eax
        mov [Function+4], edx
    End Asm
End Function


print "(ESC for exit)"

do
  t=timer
  cyc1=ReadRdtsc()
  do

  loop until abs(timer-t)>1
  cyc2=ReadRdtsc()
  t=abs(timer-t)
  cyc1=abs(cyc2-cyc1)
  print  "Cpu speed ";int((cyc1/t)/1000000);" MHz"
loop until inkey=chr(27)



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to