time: Ping a url to time the request

Description Usage Arguments Examples

View source: R/time.R

Description

Ping a url to time the request

Usage

1
2
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

1
2
3
4
5
6
## Not run: 
GET("https://mockbin.com/request") %>% time()
GET("https://api.github.com") %>% time()
GET("http://google.com") %>% time()

## End(Not run)

httping documentation built on May 1, 2019, 6:47 p.m.