javax.microedition.media
Interface TimeBase


public interface TimeBase

A TimeBase is a constantly ticking source of time. It measures the progress of time and provides the basic means for synchronizing media playback for Players.

A TimeBase measures time in microseconds in order to provide the necessary resolution for synchronoziation. It is acknowledged that some implementations may not be able to support time resolution in the microseconds range. For such implementations, the internal representation of time can be done within their limits. But the time reported via the API must be scaled to the microseconds range.

Manager.getSystemTimeBase provides the default TimeBase used by the system.

Since:
JDE 4.0.0
See Also:
Player

Method Summary
 long getTime()
          Get the current time of this TimeBase.
 

Method Detail

getTime

public long getTime()
Get the current time of this TimeBase.

The values returned must be non-negative and non-decreasing over time.

Returns:
the current TimeBase time in microseconds.
Since:
JDE 4.0.0



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.