Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Print the timing for an evaluation and return the result
ResourceFunction["EchoTiming"][body] prints the time taken to evaluate body, and returns the result of the evaluation. | |
ResourceFunction["EchoTiming"]["label",body] prints the time with a custom label. | |
ResourceFunction["EchoTiming"]["label"][body] is equivalent to ResourceFunction["EchoTiming"]["label",body]. |
Echo some expression:
In[1]:= |
Out[1]= |
Omitting output:
In[2]:= |
Add labels:
In[3]:= |
Out[3]= |
In[4]:= |
Out[4]= |
EchoTiming reports total time used, not just CPU time:
In[5]:= |
Out[5]= |
Measures of time may differ:
In[6]:= |
Out[6]= |
In[7]:= |
Out[7]= |
In[8]:= |
Out[8]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License