import os import time tiempo_inicio = time.time() "-dsco MAXZOOM=22" command = "ogr2ogr -f 'PMTiles' /home/data11/CATASTRO/A_CORUNA/constru_a_coruna.pmtiles /home/data11/CATASTRO/A_CORUNA/CONSTRU_A_CORUNA.shp -dsco MAXZOOM=22" os.system(command) tiempo_fin = time.time() tiempo_ejecucion = tiempo_fin - tiempo_inicio print(command) print(f"La función tardó {tiempo_ejecucion} segundos en ejecutarse.")