* Returns the average time spent loading new values, in milliseconds. * This is defined as totalLoadTime / loadCount, or 0.0 when loadCount is 0. * * @returns Average load time in milliseconds
()
| 153 | * @returns Average load time in milliseconds |
| 154 | */ |
| 155 | averageLoadPenalty(): number { |
| 156 | const loadCount = this.loadCount(); |
| 157 | return loadCount === 0 ? 0.0 : this.totalLoadTime / loadCount; |
| 158 | } |
| 159 | |
| 160 | /** |
| 161 | * Returns a new CacheStats representing the difference between this CacheStats |