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. How to Develope Independent Clock

How to Develope Independent Clock

Scheduled Pinned Locked Moved C#
tutorial
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.
  • S Offline
    S Offline
    Suseel kumar P
    wrote on last edited by
    #1

    I would like to develop a Clock Application. It should not depend upon the System clock. That is when the System time changes the clock tmie should not change. The clock should run independantly. Please give me the code or Logic. Thanking You Suseel Kumar P -- modified at 3:44 Saturday 3rd September, 2005

    L 1 Reply Last reply
    0
    • S Suseel kumar P

      I would like to develop a Clock Application. It should not depend upon the System clock. That is when the System time changes the clock tmie should not change. The clock should run independantly. Please give me the code or Logic. Thanking You Suseel Kumar P -- modified at 3:44 Saturday 3rd September, 2005

      L Offline
      L Offline
      Libor Tinka
      wrote on last edited by
      #2

      You can use System time as well. Only difference between system and your time could be a shift. Look at the DateTime structure at MSDN or somewhere else. Your can set your clock to any time you want, then compute a shift between your time and system time. Everywhen you want to update your time, just compute: system time + difference. It's not extremely accurate (in the mean of milliseconds), but it may be enough for your application.

      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