Skip to main content
AAlis.23
Associate III
February 22, 2023
Question

setExpandedStateTimeout wrong delay

  • February 22, 2023
  • 4 replies
  • 994 views

When changed the setExpandedStateTimeout of the slide control the delay is not as expected, when placina a value of 4000 instead of 4 seconds I'm getting a very long delay and when placing 100 Im getting around 4 seconds

This topic has been closed for replies.

4 replies

Osman SOYKURT
ST Technical Moderator
February 23, 2023

Hello AAlis.23,

Remember that this function takes a value in ticks as described in the API, it's not in millisecond.

The tick value depends on your hardware capabilities&configuration and your application of course (if it's heavy, if you have animations, how many images do you render, etc...)

/Osman

ST Software Developer | TouchGFX
AAlis.23
AAlis.23Author
Associate III
February 23, 2023

oh... I thought ticks are in ms like other OS. Ok.. Is there any function to check the ratio ticks per second?

Osman SOYKURT
ST Technical Moderator
February 24, 2023

Hello,

No there's no function because as I said it depends on the real time running. By default, 1 tick should be close to 16 ms but if you run heavy animations, you can "miss" ticks because of calculations by your MCU. I invite you to read this article for complete description of performance of your embedded graphical user interface.

/Osman

ST Software Developer | TouchGFX
AAlis.23
AAlis.23Author
Associate III
February 24, 2023

Thanks!