AutoHotkey Community

It is currently May 26th, 2012, 9:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: August 11th, 2009, 11:08 pm 
Offline

Joined: January 2nd, 2008, 4:47 am
Posts: 150
Location: Freenode IRC
I'm working with a couple windows API functions, and I need to know what range of values to expect. If I could please have a number of members run the following code, and spit the output in a reply, I would greatly appreciate it.

The following script will obtain the physical speed of your System Time Clock and of your Performance Counter. Running the following script will copy these values to your clipboard, so you can quickly paste them here.

If you feel uncomfortable running this script, don't worry. But I am looking for a large sampling so I can get an idea of how much variance I can expect from system to system. If you could identify the actual chipsets involved, that would be amazing fantastic super funtime!

Code:
; Begin Clock Info Script by Raccoon 11-Aug-2009
SetFormat, Float, 0.16
; Retrieves your Query Performance Counter Frequency.
VarSetCapacity(QPF64, 8)
QPF_ret := DllCall("QueryPerformanceFrequency", "Int64", &QPF64)
QPF := NumGet(QPF64,0,"Int64")
QPF_sec := 1/QPF

; Retrieves your System Clock Frequency (system time interval).
VarSetCapacity(TA, 4)
VarSetCapacity(TI, 4)
VarSetCapacity(TAD, 4)
STA_ret := DllCall("GetSystemTimeAdjustment", "UInt", &TA, "UInt", &TI, "Int", &TAD)
TA := NumGet(TA,0,"UInt")
TI := NumGet(TI,0,"UInt")
TAD := NumGet(TAD,0,"Int")

TI_hz := 10000000/TI
TI_sec := TI/10000000

foo =
  ( LTrim
    Performance Counter Frequency
    QPF call returned %QPF_ret%
    [b]%QPF%[/b] hz
    %QPF_sec% sec
   
    System Time Clock Frequency
    STA call retrned %STA_ret%
    [b]%TI%[/b] hundred-nanoseconds
    %TI_hz% hz
    %TI_sec% sec
    TA = %TA%
    TAD = %TAD%
   
    AutoHotkey %A_AhkVersion% %A_OSVersion%
   
    [ Please briefly describe your system
      hardware statistics here.  At least
      specify what year it was purchased and
      laptop, desktop, Dell, HP, etc, custom? ]
  )

MsgBox, %foo%`n`nResults copied to your clipboard.`nCtrl+V to Paste.
Clipboard := foo
; End of Script


Paste your results below. They might look similar to mine.

_________________
Image

Need help right away? Get live support on IRC.
Already have an IRC client installed? /join #ahk


Last edited by Raccoon on August 11th, 2009, 11:23 pm, edited 3 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 11th, 2009, 11:11 pm 
Offline

Joined: January 2nd, 2008, 4:47 am
Posts: 150
Location: Freenode IRC
Performance Counter Frequency
QPF call returned 1
3579545 hz
0.0000002793651148 sec

System Time Clock Frequency
STA call retrned 1
100144 hundred-nanoseconds
99.8562070618309580 hz
0.0100144000000000 sec
TA = 100144
TAD = 1

AutoHotkey 1.0.48.03 WIN_XP

[ Please briefly describe your system
hardware statistics here. At least
specify what year it was purchased and
laptop, desktop, Dell, HP, etc, custom? ]

_________________
Image

Need help right away? Get live support on IRC.
Already have an IRC client installed? /join #ahk


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 11th, 2009, 11:54 pm 
Performance Counter Frequency
QPF call returned 1
3579545 hz
0.0000002793651148 sec

System Time Clock Frequency
STA call retrned 1
100144 hundred-nanoseconds
99.8562070618309580 hz
0.0100144000000000 sec
TA = 100144
TAD = 1

AutoHotkey 1.0.48.03 WIN_2000

[Pentium M 1.5 Ghz
IBM Thinkpad T41 ]


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 12:31 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
Performance Counter Frequency
QPF call returned 1
1496280000 hz
0.0000000006683241 sec

System Time Clock Frequency
STA call retrned 1
156250 hundred-nanoseconds
64.0000000000000000 hz
0.0156250000000000 sec
TA = 156250
TAD = 1

AutoHotkey 1.0.47.06 WIN_XP

[ Desktop, Custom, a while back]

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 12:42 am 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3330
Location: Simi Valley, CA
Performance Counter Frequency
QPF call returned 1
3579545 hz
0.0000002793651148 sec

System Time Clock Frequency
STA call retrned 1
156250 hundred-nanoseconds
64.0000000000000000 hz
0.0156250000000000 sec
TA = 156250
TAD = 1

AutoHotkey 1.0.48.03 WIN_XP 32bit

Acer Aspire 5100-5023.

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Last edited by [VxE] on August 12th, 2009, 1:49 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 12:52 am 
Offline
User avatar

Joined: May 29th, 2008, 4:51 am
Posts: 186
Performance Counter Frequency
QPF call returned 1
14318180 hz
0.0000000698412787 sec

System Time Clock Frequency
STA call retrned 1
156001 hundred-nanoseconds
64.1021531913256980 hz
0.0156001000000000 sec
TA = 156001
TAD = 1

AutoHotkey 1.0.48.03 WIN_VISTA

_________________
~BigVent


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 1:11 am 
Offline

Joined: January 2nd, 2008, 4:47 am
Posts: 150
Location: Freenode IRC
Eedis wrote:
Performance Counter Frequency
1,496,280,000 hz
0.000,000,000,668,3241 sec

Your performance timer is accurate to PICO SECONDS?

_________________
Image

Need help right away? Get live support on IRC.
Already have an IRC client installed? /join #ahk


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 1:16 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
Uhh, I have no clue. I just ran it and copy and pasted it.

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 1:20 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
Z_Gecko wrote:
Performance Counter Frequency
QPF call returned 1
3579545 hz
0.0000002793651148 sec


Gecko's goes out 2 more than mine.

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 1:21 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
Performance Counter Frequency
QPF call returned 1
3579545 hz
0.0000002793651148 sec

System Time Clock Frequency
STA call retrned 1
156250 hundred-nanoseconds
64.0000000000000000 hz
0.0156250000000000 sec
TA = 156250
TAD = 1

AutoHotkey 1.0.47.06 WIN_XP

[ Desktop, Acer, a while back ]

This is my mom's computer downstairs.

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 1:28 am 
Offline

Joined: March 27th, 2009, 10:48 pm
Posts: 71
Performance Counter Frequency
QPF call returned 1
3391540000 hz
0.0000000002948513 sec

System Time Clock Frequency
STA call retrned 1
156250 hundred-nanoseconds
64.0000000000000000 hz
0.0156250000000000 sec
TA = 156250
TAD = 1

AutoHotkey 1.0.48.03 WIN_XP


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 2:31 am 
Offline

Joined: November 20th, 2008, 3:48 am
Posts: 52
Performance Counter Frequency
QPF call returned 1
2533400000 hz
0.0000000003947265 sec

System Time Clock Frequency
STA call retrned 1
156250 hundred-nanoseconds
64.0000000000000000 hz
0.0156250000000000 sec
TA = 156250
TAD = 1

AutoHotkey 1.0.47.06 WIN_XP

[ Desktop, Custom Setup, about 1 year ago ]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 2:58 am 
Offline

Joined: November 26th, 2008, 4:16 pm
Posts: 32
Performance Counter Frequency
QPF call returned 1
3579545 hz
0.0000002793651148 sec

System Time Clock Frequency
STA call retrned 1
156250 hundred-nanoseconds
64.0000000000000000 hz
0.0156250000000000 sec
TA = 156250
TAD = 1

AutoHotkey 1.0.48.03 WIN_XP

[
Acer Aspire one V1.02
1014 Megabytes Usable Installed Memory
Bus Clock: 533 megahertz
1.60 gigahertz Intel Atom N270
48 kilobyte primary memory cache
512 kilobyte secondary memory cache
Hyper-threaded (2 total)

Windows XP Home Edition Service Pack 3 (build 2600)
]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 5:25 am 
Offline

Joined: June 24th, 2008, 8:30 am
Posts: 126
Performance Counter Frequency
QPF call returned 1
25000000 hz
0.0000000400000000 sec

System Time Clock Frequency
STA call retrned 1
156001 hundred-nanoseconds
64.1021531913256980 hz
0.0156001000000000 sec
TA = 156001
TAD = 1

AutoHotkey 1.0.48.00 WIN_VISTA

[I custom built it:

Processor: Intel Core 2 Quad Core Q6600 @ 2.4 GHz
Ram: 4 GB
32 bit Win Vista]

_________________
“Whenever I'm about to do something, I think, 'Would an idiot do that?' And if they would, I do not do that thing.”

-Dwight


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 5:40 am 
Performance Counter Frequency
QPF call returned 1
2733720 hz
0.0000003658019109 sec

System Time Clock Frequency
STA call retrned 1
156250 hundred-nanoseconds
64.0000000000000000 hz
0.0156250000000000 sec
TA = 156250
TAD = 1

AutoHotkey 1.0.48.00 WIN_XP

[compaq presario sr2044nx ]


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, JSLover, virpara, Yahoo [Bot] and 63 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group