/* call-seq: * clock.getElapsedTime() -> Float * * This function returns the time elapsed since the last call to Reset() * (or the construction of the instance if Reset() has not been called) in seconds. */ static VALUE Clock_GetElapsedTime( VALUE self ) { sf::Clock *object = NULL; Data_Get_Struct( self, sf::Clock, object ); return rb_float_new( object->GetElapsedTime() ); }