public class ExternalTimeTracker
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static ExternalTimeTracker |
create(com.newrelic.api.agent.Request httpRequest,
long txStartTimeInMillis) |
long |
getExternalTime() |
protected static java.lang.String |
getRequestHeader(com.newrelic.api.agent.Request httpRequest,
java.lang.String headerName)
Get the given request header.
|
static long |
parseTimestampToNano(double time) |
static long |
parseTimestampToNano(java.lang.String strTime) |
void |
recordMetrics(TransactionStats statsEngine) |
public long getExternalTime()
public void recordMetrics(TransactionStats statsEngine)
protected static java.lang.String getRequestHeader(com.newrelic.api.agent.Request httpRequest,
java.lang.String headerName)
public static ExternalTimeTracker create(com.newrelic.api.agent.Request httpRequest, long txStartTimeInMillis)
public static long parseTimestampToNano(java.lang.String strTime)
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic static long parseTimestampToNano(double time)
throws java.lang.NumberFormatException
java.lang.NumberFormatException