QueryPerformanceFrequency - Negative value

Discussion in 'C' started by misterowakka, Dec 30, 2007.

  1. misterowakka

    misterowakka New Member

    Joined:
    Dec 30, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    For some reason I get a negative value from this function on some computers.
    I really can not switch to another function such as GetTickCount because I have a big application which uses QueryPerformanceFrequency all over.

    I already tried to do
    QueryPerformanceFrequency(&ticksPerSecond); //freq in [counts per second]
    unsigned __int64 Ufreq = ticksPerSecond.QuadPart;

    It doesn't help...

    Any suggestions?

    I can't seem to find a solution on the web even though this problem occurs on more than one computer...And this function is quite an important one I assume...

    Thank you
     
  2. anandv

    anandv New Member

    Joined:
    Jan 4, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    U can try considering the value returned as hex value and proceed with normal calculations after that.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice