471,350 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

C# clock() function

Hi,

I am porting some code from C++ to C#

I would like to know what i can use in C# to replace the clock() function
that is being used in the C++ app,

Thanks In Advance
Macca
Dec 13 '05 #1
2 8217
Hi Macca
simply you can use System.DateTime
Regards
--
lior israel
"Macca" wrote:
Hi,

I am porting some code from C++ to C#

I would like to know what i can use in C# to replace the clock() function
that is being used in the C++ app,

Thanks In Advance
Macca

Dec 13 '05 #2
Macca,

Take a look at the Process class proeprties. There are couple of them that
provides different time information. See what is more appropriate for you .
Keep in mind though that the time mesurement units of Process' time
properties and clock() function most likely are going to be different.
--

Stoitcho Goutsev (100) [C# MVP]

"Macca" <Ma***@discussions.microsoft.com> wrote in message
news:A0**********************************@microsof t.com...
Hi,

I am porting some code from C++ to C#

I would like to know what i can use in C# to replace the clock() function
that is being used in the C++ app,

Thanks In Advance
Macca

Dec 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Agency | last post: by
9 posts views Thread by Gino Elloso - Philippines | last post: by
1 post views Thread by s.shahzaib.ali | last post: by
33 posts views Thread by Pushkar Pradhan | last post: by
6 posts views Thread by Charles M. Reinke | last post: by
18 posts views Thread by roberts.noah | last post: by
30 posts views Thread by Matt | last post: by
2 posts views Thread by cpptutor2000 | last post: by
12 posts views Thread by cenktarhancenk | last post: by
9 posts views Thread by Ron Adam | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.