Every good chess engine offers an analysis level. The program calculates and evaluates a given position until the user interrupts the calculation.
Note: The program always starts in analysis mode. First choose a playing level under "Levels", then you can play against the chess engine.

From the interface you start the analysis level with ALT-F2.

With ALT-F2 you interrupt the calculation.