I did this as a quick way to measure screen input lag: mirror your 120fps capable display to another one, do a 240fps slow motion video of both screens and calculate the time difference by scrubbing through the video.
This repository contains the sample code for the Rendering 3D Text with Core Text and libtess2 article on Metal by Example.