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. C#
  4. System Timer?

System Timer?

Scheduled Pinned Locked Moved C#
question
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.
  • A Offline
    A Offline
    Azel Low
    wrote on last edited by
    #1

    I am writing a prog that will process data every 15 mins to 1 hour. I have looked at System.Timer and Window Timer but they seem to be conern about millisecond timing and I presume that the amount of resources (processer and RAM) that it requires might be wasted since I only require accuracy of a minute. I was wondering if you guys actually use Timers with elapse time of 15 mins - an hour or is there a better solution for this.

    H 1 Reply Last reply
    0
    • A Azel Low

      I am writing a prog that will process data every 15 mins to 1 hour. I have looked at System.Timer and Window Timer but they seem to be conern about millisecond timing and I presume that the amount of resources (processer and RAM) that it requires might be wasted since I only require accuracy of a minute. I was wondering if you guys actually use Timers with elapse time of 15 mins - an hour or is there a better solution for this.

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      A timer uses very little resources because it works with your system clock which is essential to making your computer work. Your CPU and system clock work together. Any computer engineering book you could pick up will help you understand this better. Note that there are actually 3 timers in the .NET BCL

      • System.Threading.Timers
      • System.Timers.Timer
      • System.Windows.Forms.Timer

      Each have a resolution of 1 millisecond but work different ways, like requiring a callback or exposing an event (to which you add a handler, or callback). This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]

      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