From the Dwarf Fortress wikiDwarf Fortress wiki:
Framerate is used in Dwarf Fortress to measure the speed at which the game is running. To check your FPS (frames per second) in Dwarf Fortress, simply change [FPS:NO] to [FPS:YES] in init.txt, and your FPS will be displayed near the top right corner of the screen.