Displaying the updated time on window every regular interval

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Displaying the updated time on window every regular interval

    Hello,
    I have an application where I would want to update date-time stamp every one second (precisely speaking would want to update time-stamp every 1 second).
    I have displayed date and time values in a particular string format and displayed it in a TEXT widget (I have converted date time formatted values to a desired string format using 'sprintf' function). Now if I want to update that value at regular interval, what is the best possible solution to do so.
    The TEXT Widget I am using does not have a common ID across all the windows.
    Thanks and Regards
    Aditya Mittal
  • Probably obvious but if you had a H/W timer you could do it via an interrupt. In my case I use FreeRTOS and run the timer task at the highest priority which then very time-accurately updates several screen values.