Strict
Import mojo.app

Class Animated
Private
	Field lastUpdate: Int
	
Public
	Method New()
		ResetTime()
	End
	
	Method GetElapsedTime: Int()
		Return Millisecs() - lastUpdate
	End
	
	Method ResetTime: Void()
		lastUpdate = Millisecs()	
	End
End