Code snippet: time execution for each line: help please


Results 1 to 2 of 2

Threaded View

  1. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    There's few way to measure it
    a) Toggle a led between a code snip, and mesure it with a scope
    b) using MPLAB stopwatch
    c) using the following method
    http://www.picbasic.co.uk/forum/show...72&postcount=2

    and if you want to elaborate a bit more
    http://www.picbasic.co.uk/forum/show...33&postcount=9

    If you're using the above solution with Timer, don't forget to adjust your results with Timer ticks.
    Last edited by mister_e; - 6th April 2008 at 15:54.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. decoding quadrature encoders
    By ice in forum mel PIC BASIC Pro
    Replies: 93
    Last Post: - 28th February 2017, 09:02
  2. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  3. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 14:24
  4. Line following robot... problems with some code
    By nepstar in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th March 2005, 01:10
  5. Time diference in microseconds
    By leonel in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 14th March 2005, 08:25

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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