GE dishwasher does not drain completely

Dishwasher drains for about 15 seconds in wash and rinse cycles - strong flow of water out of drain hose into disposal during that time, then stops after 15-20 seconds. Water level drops about an inch, still an inch left. Have replaced check valve in back center of DW. Does anyone know what determines how long the drain pump runs??? Float switch or electrical timer???