This document presents an algorithm for computing the average packet delay in a computer network based on Floyd's routing algorithm. The algorithm first uses Floyd's algorithm to determine the shortest paths between all node pairs and calculate the flow on each link. It then computes the total network traffic and uses this to calculate the average packet delay according to a given formula. The algorithm is illustrated on sample networks, showing it can efficiently calculate average packet delay for networks with many nodes.