By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,327 Members | 2,661 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,327 IT Pros & Developers. It's quick & easy.

Convert C code into C#

P: 1
I have been trying to convert this code to visual C#. can nyone help?
Expand|Select|Wrap|Line Numbers
  1. #include <stdio.h>
  2. #include <time.h>
  4. clock_t start = clock();
  5. /* Code you want timed here */
  6. printf("Time elapsed: %f\n", ((double)clock() - start) / CLOCKS_PER_SEC);
Aug 8 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 9,197
I am not a C# guy but here goes.

Try this.

If that doesn't work, let me know and I will move this thread to the .NET forum.
Aug 8 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.