Results 1 to 4 of 4

Thread: gettickcount vs. sleep. which one is better?

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    36

    gettickcount vs. sleep. which one is better?

    my program takes a screenshot every 3 seconds and analyzes it. im currently using the Sleep api to do this.. but im wondering if gettickcount is more efficient. What are the advantages/disadvantages of each one? Which one is easier on the CPU/memory?

  2. #2
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: gettickcount vs. sleep. which one is better?

    I would say the Sleep API call as it does actually stop everything for the set ammount of time.


    Cheers,

    RyanJ
    My Blog.

    Ryan Jones.

  3. #3
    Addicted Member BIOSTALL's Avatar
    Join Date
    Apr 2005
    Location
    Northampton, UK
    Posts
    180

    Re: gettickcount vs. sleep. which one is better?

    http://www.visualbasicforum.com/showthread.php?t=8069

    ^^^ compares and talks about other methods as well

    BIOSTALL

  4. #4

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    36

    Re: gettickcount vs. sleep. which one is better?

    very helpful link.. thanks

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