<p>In the build log I'd like to the start and end time of each project's compilation. Is there any way to get VS to do this?</p>

[{'answer_id': 46535, 'author': 'Rob Walker', 'author_id': 3631, 'author_profile': 'https://Stackoverflow.com/users/3631', 'pm_score': 5, 'selected': True, 'text': "<p>For VC++ builds you can enable build timing.  Go to Tools->Options->Projects and Solutions->VC++ Project settings and choose the option for 'Build Timing'</p>\n"}, {'answer_id': 46536, 'author': 'Scott Dorman', 'author_id': 1559, 'author_profile': 'https://Stackoverflow.com/users/1559', 'pm_score': 0, 'selected': False, 'text': '<p>Not without modifying the actual project file (using a text editor) to add calls in to the MSBuild script targets.</p>\n'}, {'answer_id': 3312614, 'author': 'Glennular', 'author_id': 14753, 'author_profile': 'https://Stackoverflow.com/users/14753', 'pm_score': 3, 'selected': False, 'text': '<p>A new way I found is to call the <code>Time</code> command in the post event <em>Pre</em> and <em>Post-build event command line:</em></p>\n\n<pre><code>TIME /T\n</code></pre>\n'}, {'answer_id': 22603785, 'author': 'Denis Palnitsky', 'author_id': 238123, 'author_profile': 'https://Stackoverflow.com/users/238123', 'pm_score': 5, 'selected': False, 'text': '<p>Other option is to increase level of MSBuild verbosity.</p>\n\n<pre><code>Tools -&gt; Options -&gt; Projects and Solutions -&gt; Build and Run -&gt; \n</code></pre>\n\n<p>Set <code>MSBuild project build output verbosity</code> to <code>Normal</code>. That will give you output like this:</p>\n\n<pre><code>------ Build started: MyProject, Configuration: Debug x86 ------\nBuild started 24/03/2014 08:46:18.\n...\nBuild succeeded.\n\nTime Elapsed 00:00:05.18\n</code></pre>\n'}, {'answer_id': 62820002, 'author': 'DarrenMB', 'author_id': 813266, 'author_profile': 'https://Stackoverflow.com/users/813266', 'pm_score': 0, 'selected': False, 'text': "<p>Alternate solution with script file...\nAlso includes Elapsed Time for the build for a project.</p>\n<p>Create VBS file somewhere in your projects shared space &quot;GetTime.vbs&quot;\nVBS Code ...</p>\n<pre><code>dim out : Set out = WScript.StdOut\nSet objShell = WScript.CreateObject(&quot;WScript.Shell&quot;)\ndim regDir: regDir=&quot;HKEY_CURRENT_USER\\Software\\VB and VBA Program Settings\\GetTime.vbs\\&quot;\ndim msg: msg=&quot;&quot;\ndim s: s=&quot;&quot;\ndim e: e=&quot;&quot;\ndim st:st=&quot;&quot;\n' param s is start flag keyed to the application being built.\nif wscript.arguments.named.exists(&quot;s&quot;) then\n    s = wscript.arguments.named(&quot;s&quot;)\n    objShell.RegWrite regdir &amp; s,now\nend if\nif wscript.arguments.named.exists(&quot;e&quot;) then\n    e = wscript.arguments.named(&quot;e&quot;)\n    st = cdate(objShell.RegRead(regDir &amp; e))\nend if \n\nif e&lt;&gt;&quot;&quot; and isdate(st) then\n    out.writeline e &amp; &quot; ENDED &quot; &amp; now &amp; &quot; ELAPSED &quot; &amp; datediff(&quot;s&quot;,cdate(st),now) &amp; &quot; seconds&quot;\nelseif e&lt;&gt;&quot;&quot; then\n    out.writeline e &amp; &quot; ENDED &quot; &amp; now\nelseif s&lt;&gt;&quot;&quot; then\n    out.writeline s &amp; &quot; STARTED &quot; &amp; now\nelse\n    out.writeline now\nend if \n</code></pre>\n<p>Alter you Build Events to include this script with some parameters as such...\n(You will need to alter the direcotry path relative to your output directory to find the file from multiple projects)</p>\n<p>Prebuild Event Command Line ...</p>\n<pre><code>cscript &quot;../../../../Scorecards/gettime.vbs&quot; //B /s:&quot;$(ProjectName)&quot;\n</code></pre>\n<p>Post Build Event Command Line</p>\n<pre><code>cscript &quot;../../../../Scorecards/gettime.vbs&quot; //B /e:&quot;$(ProjectName)&quot;\n</code></pre>\n<p>Example output from multiple projects ...</p>\n<pre><code>2&gt;  OPResources STARTED 7/9/2020 12:59:04 PM\n2&gt;  ...\n2&gt;  OPResources ENDED 7/9/2020 12:59:05 PM ELAPSED 1 seconds\n1&gt;  OPLib_WF STARTED 7/9/2020 12:59:04 PM\n1&gt;  ...\n1&gt;  OPLib_WF ENDED 7/9/2020 12:59:05 PM ELAPSED 1 seconds\n4&gt;------ Rebuild All started: Project: OPLib, Configuration: Debug Any CPU ------\n4&gt;  OPLib STARTED 7/9/2020 12:59:06 PM\n4&gt; ...\n4&gt;  OPLib ENDED 7/9/2020 12:59:10 PM ELAPSED 4 seconds\n5&gt;------ Rebuild All started: Project: PerfUpdater, Configuration: Debug Any CPU ------\n6&gt;------ Rebuild All started: Project: Scorecards2, Configuration: Debug Any CPU ------\n7&gt;------ Rebuild All started: Project: SingleSignOn, Configuration: Debug Any CPU ------\n7&gt;  SingleSignOn STARTED 7/9/2020 12:59:10 PM\n7&gt;  ...\n7&gt;  SingleSignOn ENDED 7/9/2020 12:59:12 PM ELAPSED 2 seconds\n</code></pre>\n"}]
['https://Stackoverflow.com/questions/46512', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4790/']