-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cryp Toon
committed
Dec 17, 2024
1 parent
7a7ba54
commit b6110cf
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# BitcoinLib - Python Cryptocurrency Library | ||
# | ||
# EXAMPLES - Service - Measure execution time per service provider for simple blockcount query | ||
# | ||
# © 2021 - 2024 December - 1200 Web Development <http://1200wd.com/> | ||
# | ||
|
||
from bitcoinlib.services.services import Service | ||
|
||
|
||
for provider in Service().providers: | ||
try: | ||
srv = Service(provider_name=provider, cache_uri='') | ||
except: | ||
pass | ||
else: | ||
print(provider, srv.blockcount(), srv.execution_time) |