A surgical apparatus has a clamp and a stapling mechanism. The clamp has a first jaw and a second jaw to clamp on a body tissue at a desired location for a stapling operation. The stapling mechanism is controlled by a trigger handle or a switch assembly. The surgical apparatus has a controller for providing a delay between clamping and actuating of the firing mechanism of the stapling mechanism. The delay provides for a desired amount of time for tissue compression producing a more uniform staple formation. The surgical apparatus also has an indicator. The indicator provides feedback about the status of the stapling mechanism and also displays a time of tissue compression by the clamp.