Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private long getEventValue(PerformanceEvent event) {
String script = String.format("return window.performance.timing.%s;", event);
return executeScript(script).getLongResult();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment