I need to activate an application that runs less than 1 second, but I canβt find out how to determine the runtime.
Configure Stopwatch during initialization and check its Elapsed output.
How about using a stopwatch class.
http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.aspx
In particular, pay attention to the note displayed on MSDN
On a multiprocessor computer, it does not matter which processor the thread runs on. However, due to errors in the BIOS or hardware abstraction (HAL), you may get different synchronization results on different processors. To indicate the affinity of a processor for a thread, use the ProcessThread.ProcessorAffinity method.
You can also get the time at the beginning and at the end of the program and subtract it
http://msdn.microsoft.com/en-us/library/system.datetime.now.aspx
console application does not close if you writeConsole.ReadLine ();
Source: https://habr.com/ru/post/1346999/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1346994/adding-alias-to-end-of-alias-list-in-bashrc-file-using-sed&usg=ALkJrhid93NZAYCG1FkXC_QmX7ptQFg2PQRunning Python Script with Launchd: import not found - pythonHibernate Critieria join two tables with a condition on the 2nd table and lead to the 1st table - javaWhy didn't the failed source control in CruiseControl.net fail? - cruisecontrol.netscript works fine in terminal, but not from launch - pythonGet count of records in data by groups - c #How to avoid capturing variables in a lambda expression? - c #Reading text files with LINQ - linqThe case of doctrine2, symfony2, and postgresql objects - postgresqlCocket Socket Connect Application for Hanging - c #All Articles