\ts[:n] exp

Executes the expression exp and shows the execution time in milliseconds and the space used in bytes.

q)\ts log til 100000
7 2621568

Since 3.1 2014.02.07

q)\ts:10000 log til 1000           /same as \ts do[10000; log til 1000]
329 24672