Questions tagged [real-time]

26 questions
0
votes
3 answers

Show Timing but assign the result directly

The code a=2+2//Timing assigns the variable a to {time,4} . How can I show the evaluation time, but still assign a with the result of 2+2 directly (in one line)? I have tried defining a custom Timing function (working now) showTiming[in_] := …
Albercoc
  • 988
  • 3
  • 13