Thanks for using monobrick firmware.
How does GetSpeed() work?
It simply returns the current speed.
Returns the position in degrees.
Writing a function like the one you describe depends on what approach you use. If you have some feedback that tells you when to stop simply move the motor until this requirement is meet. But just from your description it is hard to tell how to write the code. If you need input try possting the code you have.