The resource loading... loading...

Why Interval Time is Wrong

Author: bamsmen, Created: 2020-05-02 19:45:39, Updated: 2020-05-02 20:08:33

The following is an example code: function main (() { while ((true) { onTick ((() Sleep ((1000) is the I'm not sure. I'm not sure.

function is on Tick ((() { Log (which is a timer) I'm not sure.

The result is that logs are not printed once every second, but randomly every 2 minutes, 4, 8, 10 minutes, removing Sleep is the same, what is the reason for this?

2020-04-30 23:02:00 Information The clock is ticking 2020-04-30 23:00:00 Information The clock is ticking 2020-04-30 22:58:00 Info The timepiece is the timepiece 2020-04-30 22:54:00 Information The clock is ticking 2020-04-30 22:50:00 Information The clock is ticking 2020-04-30 22:46:00 Information The clock is ticking 2020-04-30 22:36:00 Information The clock is ticking 2020-04-30 22:32:00 Information The clock is ticking 2020-04-30 22:24:00 Information The time is now


More

The grassSee the forum homepage at https://www.fmz.com/bbs-topic/4158#%E7%AD%96%E7%95%A5%E5%9B%9E%E6%B5%8B