Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How ro calculate time interval ?

How ro calculate time interval ?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 626 Views
  • 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.
  • H Offline
    H Offline
    Hiloshi
    wrote on last edited by
    #1

    Dear Sirs,

    I want to measure how much time consumption between two event.
    I hope it can accurate to micro second at least.

    Could it possible to do it ?

    Normally, I use oscilloscope to measure time interval by GPIOs, however it is not possible in embedded system.

    Appreciate for any suggestions~

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      Perhaps: QElapsedTimer::nsecsElapsed() which returns elapsed time in nanosecoonds

      1 Reply Last reply
      2
      • H Offline
        H Offline
        Hiloshi
        wrote on last edited by
        #3

        Dear @mvuori ,

        It works fine, thank you very much.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved