Skip to content

Commit

Permalink
Added GetInfo (297) - frequency of high-resolution timer
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Sep 24, 2010
1 parent 1fa37b3 commit 4a20b70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripting/methods.cpp
Expand Up @@ -4278,6 +4278,7 @@ tInfoTypeMapping InfoTypes [] =
{ 294, "State of keyboard modifiers" },
{ 295, "Times output window redrawn" },
{ 296, "Output window scroll bar position" },
{ 297, "High-resolution timer frequency" },


// (dates - calculated at runtime)
Expand Down Expand Up @@ -5027,6 +5028,10 @@ VARIANT CMUSHclientDoc::GetInfo(long InfoType)
}
break;

case 297:
SetUpVariantDouble (vaResult, App.m_iCounterFrequency);
break;

case 301:
if (m_tConnectTime.GetTime ()) // only if non-zero, otherwise return empty
SetUpVariantDate (vaResult, COleDateTime (m_tConnectTime.GetTime ()));
Expand Down

0 comments on commit 4a20b70

Please sign in to comment.