Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Win7: Enabling HPET, bcdedit /set useplatformclock true (command)

05 Sep 2011   #1
ECH

Win7
 
 
Win7: Enabling HPET

Hello,

I would like some help to understand a few things about win7+ HPET and Bios+ HPET. To start it was my understanding that if you enabled HTEP in the bios win7 would automatically be using HTEP. However, I'm reading that it does not and will still use the Time Stamp Counter (TSC). So I'm not sure what point it would be enabling it from the bios.

2ndly, using the command bcdedit /set useplatformclock true (then reboot) is said to enable HPET using Win 7. While bcdedit /deletevalue useplatformclock (then reboot) is said to remove it. To test to see if it's working or not you have to use either:
A.
Timer Function Performance (run the program before and after the tweak to see if the QueryPerformanceFrequency() freq value increased or not)
B. WinTimerTester_1.1 (from UncleWebb to see if you have a 1.0000 ratio at or near 100 seconds)
To see if it improves anything or not. From Unclewebbs post he addresses the use of SetFSB. From another point of view it helps improve slow connections when using this application from here.

Should we be using Win7's HPET or stick to TSC for everyday use and gaming?


My System SpecsSystem Spec
.
06 Sep 2011   #2
ECH

Win7
 
 

Can someone help me with this one?
My System SpecsSystem Spec
06 Sep 2011   #3
Britton30
Microsoft MVP

Windows 7 Ultimate X64 SP1
 
 

Welcome back to Seven forums. I suspect your mean HPET, not HTEP?
If so here is a Wiki on it. High Precision Event Timer - Wikipedia, the free encyclopedia
My System SpecsSystem Spec
.

06 Sep 2011   #4
Dwarf

Windows 8.1 Pro RTM x64
 
 

Just tried it on my system (running W8 7989 64-bit), and you can see the difference.

Code:
Before

Report file for timing the various timers.

*** Key number is the avg time.
    The smaller this number, the faster the timer.


QueryPerformanceFrequency() freq  = 0  2458572 


method 0:
  QueryPerfCntr..()  100 times
  tot:   0 10
  avg:   0.100000
  avg time:             4.0674e-008
method 0:
  QueryPerfCntr..()  500 times
  tot:   0 49
  avg:   0.098000
  avg time:             3.98605e-008
method 0:
  QueryPerfCntr..()  1000 times
  tot:   0 98
  avg:   0.098000
  avg time:             3.98605e-008
method 0:
  QueryPerfCntr..()  10000 times
  tot:   0 977
  avg:   0.097700
  avg time:             3.97385e-008



method 1:
  GetTickCount()  100 times
  tot:   0 2
  avg:   0.020000
  avg time:             8.1348e-009
method 1:
  GetTickCount()  500 times
  tot:   0 10
  avg:   0.020000
  avg time:             8.1348e-009
method 1:
  GetTickCount()  1000 times
  tot:   0 19
  avg:   0.019000
  avg time:             7.72806e-009
method 1:
  GetTickCount()  10000 times
  tot:   0 185
  avg:   0.018500
  avg time:             7.52469e-009



method 2:
  TimeGetTime()  100 times
  tot:   0 31
  avg:   0.310000
  avg time:             1.26089e-007
method 2:
  TimeGetTime()  500 times
  tot:   0 46
  avg:   0.092000
  avg time:             3.74201e-008
method 2:
  TimeGetTime()  1000 times
  tot:   0 92
  avg:   0.092000
  avg time:             3.74201e-008
method 2:
  TimeGetTime()  10000 times
  tot:   0 918
  avg:   0.091800
  avg time:             3.73387e-008



method 3:
  Pentium internal high-freq cntr()  100 times
  tot:   0 8
  avg:   0.080000
  avg time:             3.25392e-008
method 3:
  Pentium internal high-freq cntr()  500 times
  tot:   0 37
  avg:   0.074000
  avg time:             3.00988e-008
method 3:
  Pentium internal high-freq cntr()  1000 times
  tot:   0 74
  avg:   0.074000
  avg time:             3.00988e-008
method 3:
  Pentium internal high-freq cntr()  10000 times
  tot:   0 734
  avg:   0.073400
  avg time:             2.98547e-008
Code:
After

Report file for timing the various timers.

*** Key number is the avg time.
    The smaller this number, the faster the timer.


QueryPerformanceFrequency() freq  = 0  14318180 


method 0:
  QueryPerfCntr..()  100 times
  tot:   0 1652
  avg:   16.520000
  avg time:             1.15378e-006
method 0:
  QueryPerfCntr..()  500 times
  tot:   0 8169
  avg:   16.338000
  avg time:             1.14107e-006
method 0:
  QueryPerfCntr..()  1000 times
  tot:   0 16310
  avg:   16.310000
  avg time:             1.13911e-006
method 0:
  QueryPerfCntr..()  10000 times
  tot:   0 163254
  avg:   16.325400
  avg time:             1.14019e-006



method 1:
  GetTickCount()  100 times
  tot:   0 28
  avg:   0.280000
  avg time:             1.95556e-008
method 1:
  GetTickCount()  500 times
  tot:   0 70
  avg:   0.140000
  avg time:             9.77778e-009
method 1:
  GetTickCount()  1000 times
  tot:   0 119
  avg:   0.119000
  avg time:             8.31111e-009
method 1:
  GetTickCount()  10000 times
  tot:   0 1099
  avg:   0.109900
  avg time:             7.67556e-009



method 2:
  TimeGetTime()  100 times
  tot:   0 105
  avg:   1.050000
  avg time:             7.33333e-008
method 2:
  TimeGetTime()  500 times
  tot:   0 287
  avg:   0.574000
  avg time:             4.00889e-008
method 2:
  TimeGetTime()  1000 times
  tot:   0 546
  avg:   0.546000
  avg time:             3.81333e-008
method 2:
  TimeGetTime()  10000 times
  tot:   0 5362
  avg:   0.536200
  avg time:             3.74489e-008



method 3:
  Pentium internal high-freq cntr()  100 times
  tot:   0 56
  avg:   0.560000
  avg time:             3.91111e-008
method 3:
  Pentium internal high-freq cntr()  500 times
  tot:   0 224
  avg:   0.448000
  avg time:             3.12889e-008
method 3:
  Pentium internal high-freq cntr()  1000 times
  tot:   0 441
  avg:   0.441000
  avg time:             3.08e-008
method 3:
  Pentium internal high-freq cntr()  10000 times
  tot:   0 4613
  avg:   0.461300
  avg time:             3.22178e-008
Name:  Capture.png
Views: 90
Size:  17.0 KB

I managed to stop the clock on 100.0 seconds. The ratio initially fluctuated between 0.9998 and 1.0002, but eventually settled to 1.0000 as shown, with only the occasional 0.0001 deviation.


My System SpecsSystem Spec
07 Sep 2011   #5
ECH

Win7
 
 

Any information as to why HPET isn't enabled by default for win7?
My System SpecsSystem Spec
09 May 2012   #6
Sharza

Windows 7 Professional 64 bit
 
 

Hi,
Sorry in advance for reviving this old (dead) thread. Since you guys seem to know what you are talking about I'll ask this question:

Whenever I start up my system it gives me the error that HPET could not be enabled because of a BIOS Problem (ID 1). I checked my bios and saw that HPET was set to 32 bit although I am running Windows 7 Pro 64 bit. I changed the value and tried the command line to enable HPET. I rebooted and ran both of the aforementioned tests.

Win Timer Tester 1.1 gives me a stable 1.0001 after about 30 seconds.
Time Function Performance doesn't have significantly different values.

I ran each test several times and it always gives me the same results whether I manually try to turn HPET on or off.

I conclude that this means that for some reason Windows isn't able to start HPET and uses a different (but working) Timecode instead. Now I am totally puzzled about why this happens.

I have a Gigabyte Mainboard Bios Version "Award Software FG" (23.11.2007).

Small sidenote: All my programs etc. work fine, the reason I originally stumbled across the whole HPET thing was that I read that it can cause internet connection drops which I am experiencing randomly from time to time and that don't seem to be related to the ISP or my router settings.
My System SpecsSystem Spec
Reply

 Win7: Enabling HPET, bcdedit /set useplatformclock true (command)




Thread Tools




Similar help and support threads
Thread Forum
Acronis True Image 2011 sleep/standby post command question
Hi Would someone be able to tell me step by step instructions on how to set up TI 2011 so that when it has finished its back up task it will return to Hybrid Sleep mode. i know it goes in the post command box but dont know what to type in there and also what to put in the other boxes!! I...
Backup and Restore
Making a copy of Win7 system to 2nd partition & enabling dual-boot ?
Hi, I need some advice. I'm helping my brother to set up a dual-boot of Win7 & Win7. The reason for this strange setup is because my brother wants to have his own Win7 system, separately from his son who keeps causing trouble with trojans/viruses & online games. I have several questions before...
General Discussion
how acronis true image home different from win7 backup and restore
I have got a license for Acronis True Image Home 2010. To my surprise, I don't like it unlike many other folks who swear on this software. Acronis creates a backup image in .tib or .zip format whereas Windows 7 Backup and Restore creates system image in an encrypted folder (with all files and...
Backup and Restore
HPET support
I have found this function in the BOIS in both my Vail x64 machine and W7 x64 machine. Brief reading suggests this should enable better 64 bit support however on both machines the driver won't install and I get a driver error for PCI Simple Communications Controller. Does anyone know why the...
Hardware & Devices
HPET mode on Gigabyte boards x64 or x86
I have an EP45-UD3P Gigabyte mobo. I came across something called HPET. It says to set it to 32 bit or 64 bit for Vista. I assume it's the same for Windows 7. Does anyone know for sure? I enabled 64 bit and started installing Windows 7 but it seems like there are long delays in the install...
Installation & Setup
Acronis True Image WD Edition able to clone Win7 32bit?
Hi All, Is it Acronis True Image WD Edition Software able to clone Win7 32bit edition to new hardisk? After clone, will Win7 able to start without any problem? I bought a new larger hd & plan to move my Win7 to new hd & format my old 1. Thank you.
Backup and Restore


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:20.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App