How is it possible to make metrics that compute the speed of a object running on a circle from RegisterMeasurementSeries that store the position of the object on the circle. For example, for a circle of radius 1:

time0 = 0

time1 = pi/2

time2 = pi

time3 = 3 pi/2

time4 = 0

and is it possible to manage clockwise run:

time0 = 0

time1 = 3 pi/2

time2 = pi

time3 = pi/2

time4 = 0

That is the same as an issue we have with EMR:

reset of index (our index have 5,6 or 7 digits).

and index running negative (consumption index of a customer who is producing)