Suppose the motion is between points A and B:
A P O Q B
The centre is O , the end points are A and B.
P is the midpoint of AO.
Q is the midpoint of OB.
Say we want the time for Q→B→Q.
The following times are equal:
##T_{OB} = T_{BO} = T_{OA} = T_{AO} = \frac T 4##
This a due to the inherent symmetry in a cycle of simple harmonic motion. It can be seen by looking at the shape of a sine curve.
But ##T_{AP}, T_{PO}##, etc. are not equal to any 'obvious' value (not ##\frac T 8## for example). Look at a sine curve carefully.
With O at x=0, taking x=0 when t=0 and assuming velocity at t=0 is positive, we can describe the motion by:$$x(t) = Asin \left[ \left( \frac {2\pi} T \right) t \right]$$(Using sine rather than cosine is most convenient here.)
Suppose we want ##T_{QB}##. (The required ‘return time' will be twice this.)
I think the simplest method to find ##T_{QB}## is first to find ##T_{OQ}## and then subtract it from ##T_{OB}## (since we already know that ##T_{OB} =\frac T 4##).
The position of Q is x = ##\frac A 2## which gives:$$\frac A 2 = Asin \left[ \left( \frac {2\pi} T \right) T_{OQ} \right]$$Solve for ##T_{OQ}##. And take it from there.
Someone might post a simpler method, but the above method is easier than it might initially appear!