GlobalTime A read-only property with a DANumber value which increases at the rate of one unit per second. LocalTime A read-only property with a DANumber value that starts at zero when "started" and increases at the rate of one unit per second. ViewFrameRate A read-only property with a DANumber value that is the frame rate (frames per second) of the view. ViewTimeDelta A read-only property with a DANumber value that is the difference between the current time sample and the last time sample.
A read-only property with a DANumber value which increases at the rate of one unit per second. Unlike LocalTime, the GlobalTime value cannot be reset to zero.
Syntax
lib.GlobalTime
A read-only property with a DANumber value that starts at zero when "started" and increases at the rate of one unit per second.
Syntax
lib.LocalTime
A read-only property with a DANumber value a that is the frame rate (number of frames per second) of the view.
Syntax
lib.ViewFrameRate
Remarks
You can see an example of how to use ViewFrameRate in the FrameRate.html sample found in the Samples/Multimedia/Danim/Jscript/Showcase subdirectory.
A read-only property with a DANumber value that is the difference between the current time sample and the last time sample, in seconds.
Note You can only use this function with Microsoft® DirectAnimation® versions later than 6.0; for example, version 6.00.06.xxx or later. Versions with this function are available in Microsoft Internet Explorer 5, Microsoft Windows® 98 Second Edition, and Windows 2000.
Syntax
lib.ViewTimeDelta
Return Value
Returns the DANumber object that represents the difference between the current time sample and the last time sample, in seconds.
Remarks
The value returned by ViewTimeDelta is updated every frame, so ViewTimeDelta returns the time per frame, and is reciprocal to ViewFrameRate. However, the value returned by ViewFrameRate is not updated every frame, but is an average over several frames. Thus, ViewTimeDelta is more useful for measuring jitter.
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.