pdf-icon

UIFlow Guide

UIFlow 1.0 Blockly

Event

Unit

UIFlow 1.0 Project

Timer

案例程序

程序延时与打印运行时间

from m5stack import *
from m5ui import *
from uiflow import *
import time

setScreenColor(0x222222)

print(time.ticks_ms())
wait_ms(100)
print(time.ticks_ms())
wait(1)
print(time.ticks_ms())

功能说明

wait_ms(100)
  • 程序延时/ms
wait(1)
  • 程序延时/s
print(time.ticks_ms())
  • 获取当前运行时间/ms
On This Page