タグ

timerに関するnagwikiのブックマーク (2)

  • emit.jp - emit リソースおよび情報

    This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it constitute or imply its association, endorsement or recommendation.

    nagwiki
    nagwiki 2006/03/11
    GetTickCountは使うな。timeGetTimeを使え。/ウエイトにSleepを使う場合は、timeBeginPeriodを使え。その場合に限り、GetTickCountを使用出来る。
  • timeGetTime

    timeGetTimeの使い方 まずmmsystem.hをインクルード。 そしてwinmm.libとリンクする。 Windowsが起動してからの時間をミリ秒単位で返す。 Win9xではこの関数の標準の精度は1ms。 しかしNTでは標準では5ms以上。 timeBeginPeriod とtimeEndPeriodを使って精度を決める。 timeBeginPeriod( 1 );//精度を1msに設定 //timeGetTimeを使う timeEndPeriod( 1 );//timeBeginPeriodで指定した値を渡す Win9xで作った物をそのままWinNTで動かそうとするとおかしくなる。 GetTickCountとの精度比べはしたことはないけれど、 マルチメディアタイマーというからには、 timeGetTimeのほうがいいのでは、と思う。 These m

    nagwiki
    nagwiki 2006/03/11
    timeGetTimeの使い方/60fpsの測り方
  • 1