VS:GetTickCount

From Vectorworks Developer
Revision as of 10:33, 12 August 2013 by Root (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix


Description

Returns number of ticks (1/60th second) since system startup.
FUNCTION GetTickCount : LONGINT;
def vs.GetTickCount():
    return LONGINT

Example

VectorScript

PROCEDURE Example;
VAR
tick1, tick2 :LONGINT;
BEGIN
tick1 := GetTickCount;
ForEachObject(ResetObject, (T=86));
tick2 := GetTickCount;
Message('Seconds elapsed equals: ', (tick2 - tick1) / 60);
END;
RUN(Example);

Python

def ResetObjectWrap(h):
	vs.ResetObject(h)

def Example():
	tick1 = vs.GetTickCount()
	vs.ForEachObject(ResetObjectWrap, '((T=86))')
	tick2 = vs.GetTickCount()
	vs.Message('Seconds elapsed equals: ', (tick2 - tick1) / 60)

Example()

Version

Availability: from VectorWorks8.5
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox