Results 1 to 3 of 3

Thread: Stopwatch manipulation

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2009
    Posts
    15

    Stopwatch manipulation

    Hi all,

    I have an application that has several stopwatches.

    I would like to be able to 'sync' a stopwatch with another at any given time.

    I tried setting the Elapsed time of one stopwatch to that of another stopwatch but I get that that property is 'read only'

    Is there a way to do this?


    Thanks in advance,
    Major

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Stopwatch manipulation

    Stopwatches are for measuring time only. They tell you how much time has elapsed, not the other way around. If you want to sync two Stopwatches then you have to reset them both. You can always then add an offset to each of them. Perhaps you could explain EXACTLY what you're trying to achieve.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2009
    Posts
    15

    Re: Stopwatch manipulation

    Quote Originally Posted by jmcilhinney View Post
    Stopwatches are for measuring time only. They tell you how much time has elapsed, not the other way around. If you want to sync two Stopwatches then you have to reset them both. You can always then add an offset to each of them. Perhaps you could explain EXACTLY what you're trying to achieve.
    What I originally wanted was the ability to have one clock running and at a certain point get another clock to sync up with that time. i.e. One runner runs for a minute and then another runner jumps in and continues from that minute. The clock one stops and the clock two continues on starting from that minute.

    I have accomplished this by just filling in the clock2.text from the elapsed time of stopwatch1. It adds a few more areas for error if I don't set them back the correctly but it works.


    Thanks for your help,
    Major

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