Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. multi midea timers with windows timer

multi midea timers with windows timer

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 2 Offline
    2 Offline
    2208
    wrote on last edited by
    #1

    timeSetEvent is used to use multimidea timers and setTimer() is used to windows timer either we can use boht timers at a time to perform different task or is there any problem to use both timer at a time what u will prefer we should use only one timer or can we use combination according to requirement

    S 1 Reply Last reply
    0
    • 2 2208

      timeSetEvent is used to use multimidea timers and setTimer() is used to windows timer either we can use boht timers at a time to perform different task or is there any problem to use both timer at a time what u will prefer we should use only one timer or can we use combination according to requirement

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      You can use them both at once. SetTimer is better integrated with the window messaging infrastructure (because it sends a WM_TIMER message on expiry). Multimedia timers are more accurate and have a higher resolution than SetTimer, but are harder to use (I suspect your callback runs in a different thread than the one you call timeSetEvent. Also, there are limitations on what you can call in hte callback).

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups