getTimePerDigit method

double getTimePerDigit()

Calculates the time taken to compute one digit of pi.

This method calculates the time taken to compute one digit of pi by dividing the total time taken to compute the digits by the number of digits computed.

Implementation

double getTimePerDigit() {
  return getTotalTime() / digits;
}