[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: timing a function
From: |
Ben Abbott |
Subject: |
Re: timing a function |
Date: |
Sat, 04 Dec 2010 21:33:17 -0500 |
On Dec 4, 2010, at 9:27 PM, Victor Carreto wrote:
>> On Sun, Dec 5, 2010 at 12:02 AM, Ben Abbott <address@hidden> wrote:
>> On Dec 4, 2010, at 8:43 PM, Victor Carreto Pavon wrote:
>>
>> > Is there a way to know how much time a function takes to return an
>> > answer? Do I have to do it manually like until now, or is there a way
>> > to have it print on screen as part of the answer.
>> >
>> > Thank you
>> >
>> > vic./
>>
>>
>> You can use "tic", "toc" to do that.
>>
>> tic; your_function(...); toc
>>
>> Ben
>
> great,
>
> just one more quick question. how mucho is 1e+02 seconds?
>
1e+02 sec = 100 sec = 1 min 40 seconds
Ben