Convert C code into C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • omy2k
    New Member
    • Aug 2007
    • 1

    Convert C code into C#

    I have been trying to convert this code to visual C#. can nyone help?[code=c]
    #include <stdio.h>
    #include <time.h>

    clock_t start = clock();
    /* Code you want timed here */
    printf("Time elapsed: %f\n", ((double)clock( ) - start) / CLOCKS_PER_SEC) ;[/code]
    Last edited by sicarie; Aug 8 '07, 12:45 PM. Reason: Code tags are to the right when you create or edit a post. Please use them.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    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.

    Comment

    Working...