What is the easiest way to test frametime/latency?

Hello fellow THW users.

I'm wondering how do you guys test frametime or frame latency. Is there any hardware needed, or just the data? I want to have a raw graph of the frametime when I game. What is the easiest method?

Thanks.