Shiny Language Reference
Language Reference > Basic Functions
getelapsedtime
dword getelapsedtime();
Synonyms:
dword getdeltatime();
Returns the time in milliseconds since the plugin was loaded
GETELAPSEDTIME returns the time in milliseconds since the plugin was loaded. This statement can be used for time-based conditions. The returned time is in a type DWORD as the value can potentially be larger than a type INT can store. Under normal circumstances there should be no problems with using implict type conversion to convert this to an INT.
Parameters
None
Return Value
The number of milliseconds since the plugin was loaded.
Example Code
// Get the amount of time the plugin has been running
dword dwElapsed = getelapsedtime();
// Also legal through implicit type conversion
int iElapsed = getelapsedtime();