1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] How do you determine a processing time in Python?

Discussão em 'Python' iniciado por Stack, Dezembro 21, 2024.

  1. Stack

    Stack Membro Participativo

    I'm new to Python, and confused by the date/time documentation. I want to compute the time that it takes to perform a computation.

    In java, I would write:

    long timeBefore = System.currentTimeMillis();
    doStuff();
    long timeAfter = System.currentTimeMillis();
    elapsed time = timeAfter - timeBefore;


    I'm sure it's even easier in Python. Can anyone help?

    Continue reading...

Compartilhe esta Página