How to display FPS on a Quest

I’m well aware of stat FPS, but this is not terribly useful on a quest where the text is extremely tiny. Is there any way to access the FPS so that it could be piped into a widget with larger text?