<p>How to run NAnt scripts in command line and get the timings of each task on the log file?</p>

<pre><code>using nant &lt;record&gt; task or 
NAnt -buildfile:testscript.build testnanttarget
</code></pre>

<p>This produces console output but I can't see any timing information.</p>

<p>All I want each log message prefixed with datatime.</p>

You can use the
tstamp task
to display the current date/time. Just include it everywhere where you want timing information. It will not prefix each line with a timestamp, but at least you can time some strategic points.
```
```
<tstamp />
```
```