To get an idea for timing of your ATMEGA program, you can examine it using the simulator and logic analyzer features found inside of MPLAB X. To do so, it's important that you set up the logic analyzer module, the simulator and your chip's assumed frequency correctly. Here we go through those steps.