Second derivative of displacement with respect to time.
i.e. take the gradient of the graph to find the velocity at any given moment, and then take the gradient of that to find what the acceleration is. If the distance-time graph is a straight line, then the acceleration in the direction of motion is zero.