Windows timer resolution tool in form of system service

Discussion in 'Operating Systems' started by mbk1969, Mar 23, 2013.

  1. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,604
    Likes Received:
    13,613
    GPU:
    GF RTX 4070
    You should find error events in Event viewer for not worked services, assuming they accounted problems at their start.

    As for question # 1, if service is registered with 'Automatic' startup type it should start at every OS` boot. So nothing additional is needed. If service is registered with 'Manual' startup type you should start it manually after each OS` boot.
     
  2. kens30

    kens30 Maha Guru

    Messages:
    1,225
    Likes Received:
    93
    GPU:
    RTX 3070 GAMING OC
    I would love if you make a script mbk1969 and implement all of the above features you mentioned.
    what i would like you to implement goes as follows(basically the same ones you listed)
    1.(most important of all)make a backup of the reg-file every time we make a change so we can restore back to its default value.
    2. A list of devices showing their current status if MSI-mode is enabled or disabled.
    3.Turn on MSI-mode from a list of individual devices.
    Example: something like this
    press 1 to turn on MSI-mode for gpu and prompt for a restart to check its status.(If it was successful switching it to MSI-mode or not)
    press 2 to turn on MSI-mode for sata controller...you get the idea.
    4.Turn off MSI-mode from a list of individual devices we have changed.

    Plus Write up a simple readme.txt file on how to use it and most important if something goes wrong and we boot up with a blue screen,
    telling us what steps we need to take to restore the last backup of the reg-file created to it's default value.
    (like booting into safe mode and double clicking on the last saved reg file backup to add it to the registry restoring it to its original state.

    I know i might be asking too much but as a start implementing the features
    on your list would be just fine.

    Many thanks can't wait for your 1st script with features you listed,you will save us a lot of time from making the changes manually for every device.

    One more note as i have no experience at all about writing scripts or programming i don't know if it is very time consuming and complicated to implement the features i listed.
    It would be nice though and more complete.

    I just have to say many thanks again for sharing your knowledge of Windows timers and MSI mode which i haven't heard before i started reading your posts.
     
  3. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,604
    Likes Received:
    13,613
    GPU:
    GF RTX 4070
    http://forums.guru3d.com/showpost.php?p=4771252&postcount=122


    It is easy to implement feature of individual device switching.
     
    Last edited: Feb 24, 2014
  4. Thvle

    Thvle Guest

    Messages:
    4
    Likes Received:
    0
    GPU:
    Gigabyte GTX 760 OC
    Look this, guys:

    hXXp://vvvv.org/contribution/windows-system-timer-tool

    Is a new tool for change windows timer to 0.5. Is Open Source.
     

  5. pjokerxp

    pjokerxp Banned

    Messages:
    652
    Likes Received:
    0
    GPU:
    Palit GeForce GTX 680 2GB
    Does STRservice work under windows 8.1 64 ?
    i couldnt make it run properly like windows 7

    any suggestions?
     
  6. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,604
    Likes Received:
    13,613
    GPU:
    GF RTX 4070
    Are there events in Event log regarding failed start or something like that?

    In what folder did you place it? I recall that case with system folders already reported...

    Edit: Which version of STR - C++ or .Net ?
     
  7. pjokerxp

    pjokerxp Banned

    Messages:
    652
    Likes Received:
    0
    GPU:
    Palit GeForce GTX 680 2GB
    Dear sir, thank you for your fast reply.
    i placed the whole STRservice Install 3 folder in C:\
    and then I used option 2 which is C#

    after that i clicked number 6 to activate and number 8 to show but still same ms. same steps i do in windows 7.

    so i did it manually from the post number 43
    http://forums.guru3d.com/showpost.php?p=4600410&postcount=43

    and it worked.

    [​IMG]
     
  8. Cyberdyne

    Cyberdyne Guest

    Messages:
    3,580
    Likes Received:
    308
    GPU:
    2080 Ti FTW3 Ultra
  9. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,604
    Likes Received:
    13,613
    GPU:
    GF RTX 4070
    That 'worked' means that service is started, right? But I don`t get whether timer resolution is changed...

    Edit: If it was the first time you tried to execute 'Install-STRService.ps1', and never executed any PowerShell scripts, then
    Code:
    Set-ExecutionPolicy unrestricted
    was mandatory, because PowerShell restricts script execution by default.

    Edit2: I will update OP.
     
    Last edited: Apr 16, 2014
  10. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,604
    Likes Received:
    13,613
    GPU:
    GF RTX 4070
    Last edited: Apr 19, 2014

  11. Prophet

    Prophet Master Guru

    Messages:
    865
    Likes Received:
    34
    GPU:
    Msi 680
    Im wondering what a good tool for checking the current resolution is. I have a regged version of lucas hales timerresolution, that can check the current resolution, and the resolution changes as I turn the service on and off but to values that I dont think are correct.
     
  12. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,604
    Likes Received:
    13,613
    GPU:
    GF RTX 4070
    http://forums.guru3d.com/showpost.php?p=4539837&postcount=330

    Why do you think those values are incorrect? Post them here...
     
  13. Cyberdyne

    Cyberdyne Guest

    Messages:
    3,580
    Likes Received:
    308
    GPU:
    2080 Ti FTW3 Ultra
    Inside the last version of the pack I put together is a way to check it, by pressing 8. The app is called ClockRes v2.0 and it runs from CMD.
    http://technet.microsoft.com/en-us/sysinternals/bb897568.aspx
     
  14. Prophet

    Prophet Master Guru

    Messages:
    865
    Likes Received:
    34
    GPU:
    Msi 680
    Mkb: Because it was showing 1.0ms res without me doing anything or running any programs. Seems clockres is showing the same thing though so I guess its correct. Funny I have been using sysinternals from way before they were bought by ms, never realized I had this or rather what it did.

    Thanks for the tip Cyber. Please be careful with those shellscripts we dont want to start another big war.
     
  15. Cyberdyne

    Cyberdyne Guest

    Messages:
    3,580
    Likes Received:
    308
    GPU:
    2080 Ti FTW3 Ultra
    What do you mean by 'big war'? With the batch files? And what do you mean by 'another'? Am I a part of a conspiracy so deep that I don't even know I'm a part of it?
     

  16. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,604
    Likes Received:
    13,613
    GPU:
    GF RTX 4070
    http://msdn.microsoft.com/en-us/library/hh824902.aspx
    Run
    Code:
    Powercfg /ENERGY
    [/OUTPUT<FILENAME>] [/XML] [/DURATION<SECONDS>]
    or
    /TRACE [/D<FILEPATH>] [/XML] [/DURATION<SECONDS>]
    Analyzes the system for common energy-efficiency and battery-life problems. The ENERGY command should be used when the computer is idle and has no open programs or documents. The ENERGY command generates an HTML report file in the current path.
    
    Arguments:
    /OUTPUT <FILENAME> Specify the path and file name to store the energy report HTML or XML file.
    
    /XML Formats the report file as XML.
    
    /DURATION <SECONDS> Specifies the number of seconds to observe system behavior. Default is 60 seconds. 
    
    /TRACE Records system behavior and does not perform analysis. Trace files are generated in the current path unless the /D parameter is specified. 
    
    /D <FILEPATH> Specify the directory to store trace data. May only be used with the /TRACE parameter.
    
    Examples:
    POWERCFG /ENERGY
    POWERCFG /ENERGY /OUTPUT "longtrace.html" /DURATION 120
    Resulting report in HTML-file will specify which processes did set timer resolution.
     
  17. Prophet

    Prophet Master Guru

    Messages:
    865
    Likes Received:
    34
    GPU:
    Msi 680
    You have been taken over by a biological ai :)

    It was a jibe about Cyberdyne Systems and ai taking over the world sorry it was a bit farfetched :)
     
  18. Prophet

    Prophet Master Guru

    Messages:
    865
    Likes Received:
    34
    GPU:
    Msi 680
    Thanks David. First it said that msi ab and firefox were responsible at 1ms timer res. Now it just says its a kernel component or driver at 2 ms.

    Guessing its because turned off all powersaving features in the bios, just never thought that would affect the timer resolution.
     
  19. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,604
    Likes Received:
    13,613
    GPU:
    GF RTX 4070
    David???

    I forgot about ClockRes:
    http://technet.microsoft.com/en-us/sysinternals/bb897568.aspx
     
  20. Prophet

    Prophet Master Guru

    Messages:
    865
    Likes Received:
    34
    GPU:
    Msi 680

Share This Page