Results 1 to 11 of 11

Thread: [RESOLVED] Pause in a loop

Hybrid View

  1. #1
    Hyperactive Member danecook21's Avatar
    Join Date
    Feb 2008
    Location
    NC, USA
    Posts
    501

    Re: Pause in a loop

    I don't know if I agree with that last statement but if so, that way is so inefficient it could be called wrong I mean it is literally just wasting away CPU time. If the task you're doing requires that, you need to rethink your logic.

  2. #2
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Pause in a loop

    Quote Originally Posted by danecook21
    I don't know if I agree with that last statement but if so, that way is so inefficient it could be called wrong I mean it is literally just wasting away CPU time. If the task you're doing requires that, you need to rethink your logic.
    I'm not sure, but the timer control internally just keeps looping same as the code above. How else could it know that it's time for next iteration to begin?

    Pradeep
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width