import time
      
      start_time = time.time()
      # do things
      
      end_time = time.time()
      time_taken = end_time - start_time
      print(f"Time taken in seconds: {int(time_taken)}")
      
      Python language logo

      Profiling execution time

      Python public recipes

      Shortcut: time.profiling

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.