percentOf method

double percentOf(
  1. Duration other
)

Implementation

double percentOf(Duration other) {
  return inMilliseconds / other.inMilliseconds;
}