Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Creating Timer based on external time source

Creating Timer based on external time source

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 470 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.
  • A Offline
    A Offline
    Ayush Gupta
    wrote on 29 May 2019, 05:43 last edited by
    #1

    Hi I need to implement timers where I need to stop the timers and call the callback functions
    based on the external timer source.

    There is some other functions which will set the time by calling an interface API every 25 ms.

    My QT code is a DLL

    A 1 Reply Last reply 29 May 2019, 05:50
    0
    • A Ayush Gupta
      29 May 2019, 05:43

      Hi I need to implement timers where I need to stop the timers and call the callback functions
      based on the external timer source.

      There is some other functions which will set the time by calling an interface API every 25 ms.

      My QT code is a DLL

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 29 May 2019, 05:50 last edited by
      #2

      Hi @Ayush-Gupta,

      I've read your post several times, but honestly I don't get your problem.

      Can you please explain your problem a bit more in detail? Who is calling what and when? And what does it have to do with Qt?

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Ayush Gupta
        wrote on 29 May 2019, 05:59 last edited by
        #3

        @aha_1980 There is one application which use to set time in my QT application.

        My QT application is GUI will be act as dll. So the external application will set the time in my QT application using one interface say setTimefromApp(uint milliseconds).

        So I need to implement timers based on the time set by external Application.

        Suppose time set by external application is fast than normal clock hence. The callback needs be called based if the time in set by external application is passed.

        Means time set in external application is running fast.

        Suppose creating a time MyTimer and its implementation will set to some callbacks/ list of timeouts
        which will be iterated over in the function setTimefromApp(uint milliseconds).

        A 1 Reply Last reply 29 May 2019, 06:16
        0
        • A Ayush Gupta
          29 May 2019, 05:59

          @aha_1980 There is one application which use to set time in my QT application.

          My QT application is GUI will be act as dll. So the external application will set the time in my QT application using one interface say setTimefromApp(uint milliseconds).

          So I need to implement timers based on the time set by external Application.

          Suppose time set by external application is fast than normal clock hence. The callback needs be called based if the time in set by external application is passed.

          Means time set in external application is running fast.

          Suppose creating a time MyTimer and its implementation will set to some callbacks/ list of timeouts
          which will be iterated over in the function setTimefromApp(uint milliseconds).

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 29 May 2019, 06:16 last edited by
          #4

          @Ayush-Gupta

          Does that mean the system time does not change but the time in your app changes?

          To me that sounds like a rather bad design which can lead to a lot of complication.

          I'm not sure if you will be able to use the existing Qt timers then.

          Qt has to stay free or it will die.

          1 Reply Last reply
          1
          • A Offline
            A Offline
            Ayush Gupta
            wrote on 29 May 2019, 06:21 last edited by
            #5

            Application time which is launching QT application is moving faster than normal clock. Hence I need to run those timers with same pace with which application is running hence I am not in position to use QT Timers

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 30 May 2019, 19:47 last edited by SGaist
              #6

              Hi,

              Can you explain a bit more about that faster time in your application ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              4/6

              29 May 2019, 06:16

              • Login

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