GetTickCount: Difference between revisions
Jump to navigation
Jump to search
JonChappell (talk | contribs) No edit summary |
JonChappell (talk | contribs) m (→Description) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
==Description== | ==Description== | ||
This function returns amount of time that your system has been running in milliseconds | 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== | ==Syntax== |
Revision as of 19:50, 25 March 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
int getTickCount ( )
Example
GetTickStart = GetTickCount ( ) //Do some other stuff here GetTickEnd = GetTickCount ( ) serverchat ( "Time elapsed:", GetTickEnd - GetTickStart )