Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7630257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:03:22+00:00 2026-05-31T06:03:22+00:00

Is there either a bash command or a Python library that will time the

  • 0

Is there either a bash command or a Python library that will time the amount of time to execute a file/command? I want to be able to decide what language will work best for a task or have a way of knowing for certain that Python code A runs faster than Python code B. If there is a way of doing this, but this question is off topic, please leave a comment with search terms or other resources.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T06:03:23+00:00Added an answer on May 31, 2026 at 6:03 am

    Yes, it’s called the time command. As in time command arg1 arg2 arg3.

    This outputs 3 fields, something like this:

    real    0m0.631s
    user    0m0.154s
    sys     0m0.458s
    

    The first is the actual wall-clock time. The second is how long the program spent in user space. The third is how long the program spent in kernel space.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a version of require in ruby that either loads the whole file,
Let's say I execute the following command in either BASH or Kornshell: $ foo
I want to allow users to either have there username field empty at any
Are there existing template extract libraries in either python or php? Perl has Template::Extract
Is there an ASP.NET MVC portal that is either commercially available or open source?
In bash I am able to write a script that contains something like this:
So there is a common problem that I have found in bash. Let's say
I've written a small script in bash that parses either the provided files or
Hi out there in Stackland. I was wondering if there was either a function
As a graphic designer, I am wondering if either: there is a WordPress plugin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.