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. Microsecond timers/delays

Microsecond timers/delays

Scheduled Pinned Locked Moved C#
helpcsharpc++sysadminhardware
3 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
    sjembek
    wrote on last edited by
    #1

    Hi, I'm testing a piece of hardware that receives network traffic and want to see exactly at what frequency it gets overburdened by the load of traffic. To do this I wrote a simple program that sends packets at a set interval. My problem is the following: The hardware doesn't break up at intervals of 1 millisecconds, so I need higher resolution delays or timers in my program (somewhere in the order of 50 microsecconds or so) than the timers I've been using (Threading.Timer or Forms.Timer). I found an article on the net saying this is possible with C++, but I can't find any info on the subject in c#. Can anyone help? Thanks in advance for any help I might get...

    S 1 Reply Last reply
    0
    • S sjembek

      Hi, I'm testing a piece of hardware that receives network traffic and want to see exactly at what frequency it gets overburdened by the load of traffic. To do this I wrote a simple program that sends packets at a set interval. My problem is the following: The hardware doesn't break up at intervals of 1 millisecconds, so I need higher resolution delays or timers in my program (somewhere in the order of 50 microsecconds or so) than the timers I've been using (Threading.Timer or Forms.Timer). I found an article on the net saying this is possible with C++, but I can't find any info on the subject in c#. Can anyone help? Thanks in advance for any help I might get...

      S Offline
      S Offline
      S Senthil Kumar
      wrote on last edited by
      #2

      Did you take a look at this[^] article?

      Regards Senthil [MVP - Visual C#] _____________________________ My Blog | My Articles | My Flickr | WinMacro

      S 1 Reply Last reply
      0
      • S S Senthil Kumar

        Did you take a look at this[^] article?

        Regards Senthil [MVP - Visual C#] _____________________________ My Blog | My Articles | My Flickr | WinMacro

        S Offline
        S Offline
        sjembek
        wrote on last edited by
        #3

        A bit late, but just wanna thank you for the tip, this works excellent!

        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