time: Ping a url to time the request
Description
Ping a url to time the request
Usage
time(.request, count = 10, delay = 0.5, flood = FALSE, verbose = TRUE,
...)
Arguments
- .request
A httr response object
- count
integer, Number of requests to do.
- delay
integer, Seconds to delay successive calls by. Default:
0.5 seconds.
- flood
logical; If TRUE, no delay between requests. If FALSE,
delay by 0.5
second.
- verbose
logical; If TRUE, print progress.
- ...
Further args passed on to functions in httr
Examples
Run this codeif (FALSE) {
GET("https://mockbin.com/request") %>% time()
GET("https://api.github.com") %>% time()
GET("http://google.com") %>% time()
}
Run the code above in your browser using DataLab