Class Timing
java.lang.Object
com.github.tomakehurst.wiremock.common.Timing
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Timingcreate()The delay added to the response via the stub or global configurationThe amount of time spent handling the stub requestThe amount of time taken to send the response to the clientThe total request time from start to finish, minus added delayThe total request time including added delayvoidlogProcessTime(com.google.common.base.Stopwatch stopwatch) voidlogResponseSendTime(com.google.common.base.Stopwatch stopwatch) voidsetAddedTime(int addedDelayMillis)
-
Field Details
-
UNTIMED
-
-
Method Details
-
create
-
getAddedDelay
The delay added to the response via the stub or global configuration -
getProcessTime
The amount of time spent handling the stub request -
getResponseSendTime
The amount of time taken to send the response to the client -
getServeTime
The total request time from start to finish, minus added delay -
getTotalTime
The total request time including added delay -
setAddedTime
public void setAddedTime(int addedDelayMillis) -
logProcessTime
public void logProcessTime(com.google.common.base.Stopwatch stopwatch) -
logResponseSendTime
public void logResponseSendTime(com.google.common.base.Stopwatch stopwatch)
-