Skip to content

Instantly share code, notes, and snippets.

@vubon
Created December 3, 2017 05:01
Show Gist options
  • Select an option

  • Save vubon/8b2d9aed827b658a542a8b5cebcdf377 to your computer and use it in GitHub Desktop.

Select an option

Save vubon/8b2d9aed827b658a542a8b5cebcdf377 to your computer and use it in GitHub Desktop.
Checking Rest API Response Time
"""
This script will check server response time in seconds.
"""
import requests
while True:
a = requests.get("your api url").elapsed.total_seconds()
print(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment