getApiKeyHelperElapsedMs function

int getApiKeyHelperElapsedMs()

Returns how long the in-flight API key helper has been running.

Implementation

int getApiKeyHelperElapsedMs() {
  final startedAt = _apiKeyHelperInflight?.startedAt;
  return startedAt != null
      ? DateTime.now().millisecondsSinceEpoch - startedAt
      : 0;
}