GetTickCount: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 14: | Line 14: | ||
GetTickEnd = getTickCount ( ) | GetTickEnd = getTickCount ( ) | ||
outputChatBox ( "Time elapsed:", GetTickEnd - GetTickStart )</syntaxhighlight> | outputChatBox ( "Time elapsed:", GetTickEnd - GetTickStart )</syntaxhighlight> | ||
==See Also== | |||
{{Utility functions}} |
Revision as of 20:26, 20 May 2006
Description
This function returns amount of time that your system has been running in milliseconds. By comparing two values of GetTickCount, you can determine how much time has passed (in milliseconds) between two events. This could be used to determine how efficient your code is, or to time how long a player takes to complete a task.
Syntax
getTickCount ()
Required Arguments
This function has no arguments.
Example
GetTickStart = getTickCount ( ) //Insert custom code here... GetTickEnd = getTickCount ( ) outputChatBox ( "Time elapsed:", GetTickEnd - GetTickStart )
See Also
- addDebugHook
- base64Decode
- base64Encode
- debugSleep
- decodeString
- encodeString
- fromJSON
- generateKeyPair
- getColorFromString
- getDevelopmentMode
- getDistanceBetweenPoints2D
- getDistanceBetweenPoints3D
- getEasingValue
- getNetworkStats
- getNetworkUsageData
- getPerformanceStats
- getRealTime
- getTickCount
- getTimerDetails
- getTimers
- getFPSLimit
- getUserdataType
- getVersion
- gettok
- isTransferBoxVisible
- setTransferBoxVisible
- hash
- inspect
- interpolateBetween
- iprint
- isOOPEnabled
- isTimer
- killTimer
- md5
- passwordHash
- passwordVerify
- pregFind
- pregMatch
- pregReplace
- removeDebugHook
- resetTimer
- setDevelopmentMode
- setFPSLimit
- setTimer
- ref
- deref
- sha256
- split
- teaDecode
- teaEncode
- toJSON
- tocolor
- getProcessMemoryStats
- utfChar
- utfCode
- utfLen
- utfSeek
- utfSub
- bitAnd
- bitNot
- bitOr
- bitXor
- bitTest
- bitLRotate
- bitRRotate
- bitLShift
- bitRShift
- bitArShift
- bitExtract
- bitReplace