Total Pageviews

Sunday, April 6, 2014

ចង់បាន GetTimer

System.getTimer() នៅពេលយើងលឺពាក្យថា timer គេប្រើសំរាប់ ត្រឡប់ពេលវេលាជា miliseconds តាំងពី​កម្មវិធីដំណើរការ។ នៅលើ IOS, Mac, Windows វានឹងត្រឡប់តំលៃជា fractional ដែលត្រឹមត្រូវនឹង microsecond។ ចំណែកលើ android តំលៃអាចត្រឹមត្រូវជា microsecond វាអាស្រ័យលើ devices

Syntax: system.getTimer()

សូមមើលកូដះ

print( system.getTimer() ) -- displays the time running (in milliseconds)

No comments:

Post a Comment