Download BL600 smartBASIC Module
Transcript
smart BASIC User Manual If ‘startTick’ is less than 0 which is a value that GETTICKCOUNT() will never return, then a 0 will be returned. GETTICKSINCE (startTick) Function Returns: INTEGER A value in the range 0 to 0x7FFFFFFF (2,147,483,647) in units of milliseconds. startTickr byVal startTick AS INTEGER This is a variable that was updated using the return value from GETTICKCOUNT() and it is used to calculate the time elapsed since that update. Interactive Command: No Related Commands: GETTICKCOUNT DIM startTick, elapseMs startTick = GETTICKCOUNT() … do something elapseMs = GETTICKSINCE(startTick) PRINT “\nsomthing took “;elapseMS; “msec to process” GETTICKCOUNT is a core subroutine. www.lairdtech.com 106 Laird Technologies