Warum ist Intervallzeit falsch?

Schriftsteller:Bamsmen, Erstellt: 2020-05-02 19:45:39, Aktualisiert: 2020-05-02 20:08:33

Ein Beispiel ist folgender Code: Die Funktion "main() { while (true) { Einfach ein bisschen. Schlaf ((1000) Wir sind hier. Wir sind hier.

Funktion auf Tick ((() { Log (Zeitmesser) Wir sind hier.

Das Ergebnis ist, dass Logs nicht einmal pro Sekunde gedruckt werden, sondern alle zwei Minuten, vier Minuten, acht Minuten, zehn Minuten zufällig gedruckt werden.

2020-04-30 23:02:00 Informationen Zeitmesser 2020-04-30 23:00:00 Informationen Zeitmesser 2020-04-30 22:58:00 Informationen Zeitmesser 2020-04-30 22:54:00 Informationen Zeitmesser 2020-04-30 22:50:00 Informationen Zeitmesser 2020-04-30 22:46:00 Informationen Zeitmesser 2020-04-30 22:36:00 Informationen Zeitmesser 2020-04-30 22:32:00 Informationen Zeitmesser 2020-04-30 22:24:00 Informationen Zeitmesser


Mehr

Das GrasSiehe Forum-Haupteintrag https://www.fmz.com/bbs-topic/4158#%E7%AD%96%E7%95%A5%E5%9B%9E%E6%B5%8B