I only get the cramps after 1.5 to 2 hours of hard riding. On the road bike it will usually take 2.5 to 3 hours before I get any cramping.
I don’t get them after sitting for extended periods or anything like that.
I haven’t mentioned to my doctor because I expect his answer will be stop and rest if you get cramps.
thanks again to everyone for their input.