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
  1. Home
  2. General Programming
  3. WPF
  4. DispatcherTimer

DispatcherTimer

Scheduled Pinned Locked Moved WPF
6 Posts 3 Posters 5 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.
  • M Offline
    M Offline
    michaelbarb
    wrote on last edited by
    #1

    When does the next tick start. Watching how things seem to preform it seems like: Tick Execute Tick routine, pause tick timer Tick routine ends, restart tick timer It seems like the tick interval is between the tick routines. It is OK, I just want to make sure I understand it correctly.

    So many years of programming I have forgotten more languages than I know.

    M L 2 Replies Last reply
    0
    • M michaelbarb

      When does the next tick start. Watching how things seem to preform it seems like: Tick Execute Tick routine, pause tick timer Tick routine ends, restart tick timer It seems like the tick interval is between the tick routines. It is OK, I just want to make sure I understand it correctly.

      So many years of programming I have forgotten more languages than I know.

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      You have the sequence wrong! Tick Stop the timer process the tick routine restart the timer. If your process is longer than the timer interval it clags up the system.

      Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

      M 1 Reply Last reply
      0
      • M Mycroft Holmes

        You have the sequence wrong! Tick Stop the timer process the tick routine restart the timer. If your process is longer than the timer interval it clags up the system.

        Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

        M Offline
        M Offline
        michaelbarb
        wrote on last edited by
        #3

        That's what I meant. Maybe I did not state it well. "it clags up the system" is what I thought at first but it seems to follow the above sequence fairly well. As I change the tick interval it seems to be offset by a constant. My tick routine has to read some USB analog inputs. It is slow but consistent. I cannot find anything on the web to explain clags.

        So many years of programming I have forgotten more languages than I know.

        M 1 Reply Last reply
        0
        • M michaelbarb

          That's what I meant. Maybe I did not state it well. "it clags up the system" is what I thought at first but it seems to follow the above sequence fairly well. As I change the tick interval it seems to be offset by a constant. My tick routine has to read some USB analog inputs. It is slow but consistent. I cannot find anything on the web to explain clags.

          So many years of programming I have forgotten more languages than I know.

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          Sorry - slang You end up with queued processes that are re-launched before the last one is completed therefore you need to insure that only 1 process is launched at a time.

          Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

          M 1 Reply Last reply
          0
          • M Mycroft Holmes

            Sorry - slang You end up with queued processes that are re-launched before the last one is completed therefore you need to insure that only 1 process is launched at a time.

            Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

            M Offline
            M Offline
            michaelbarb
            wrote on last edited by
            #5

            I like the slang better.

            So many years of programming I have forgotten more languages than I know.

            1 Reply Last reply
            0
            • M michaelbarb

              When does the next tick start. Watching how things seem to preform it seems like: Tick Execute Tick routine, pause tick timer Tick routine ends, restart tick timer It seems like the tick interval is between the tick routines. It is OK, I just want to make sure I understand it correctly.

              So many years of programming I have forgotten more languages than I know.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              You only need to pause, if the tick event takes longer to execute than the interval if you want a "proper" timer. And if you're re-entrant, you don't need to pause either. Pausing implies your interval is "off".

              It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

              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