SFML community forums

Bindings - other languages => DotNet => Topic started by: joeparrilla on November 26, 2012, 12:09:03 am

Title: Issue with TIME tutorial
Post by: joeparrilla on November 26, 2012, 12:09:03 am
So I am getting myself reacquainted with the C# binding (I forgot everything from previous usage). I am starting by doing all of the tutorials from the site. I am beginning with the timing tutorial, but I think I am doing something wrong converting to C#. I dont see any classes, members, etc  with the name Time, Clock, etc. Is this stuff not wrapped in the C# version because I should be using standard .net functionality for it, something like TimeSpan or DateTime?
Title: Re: Issue with TIME tutorial
Post by: zsbzsb on November 26, 2012, 02:50:53 am
Please use the search next time before posting... This has been answered countless times before.
Here is the MSDN link to what you need to use. (http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.aspx)

using System.Diagnostics;
Title: Re: Issue with TIME tutorial
Post by: joeparrilla on November 26, 2012, 03:37:10 am
Sorry about that, thanks for the reply though. So does that mean that this functionality was left out of the .NET port of SFML? Are there other things that I should be aware of that I will not have access to?
Title: Re: Issue with TIME tutorial
Post by: zsbzsb on November 26, 2012, 04:34:35 am
Sorry about that, thanks for the reply though. So does that mean that this functionality was left out of the .NET port of SFML? Are there other things that I should be aware of that I will not have access to?
Yes it was intentionally left out of SFML.NET due to it already being implemented in the .NET framework. The only SFML libraries bound in SFML.NET are the graphics, system(window functions only), and audio libraries. The rest of the SFML functions such as threads and networking are not bound since the .NET framework already has very good implementations of these functions.
Title: Re: Issue with TIME tutorial
Post by: joeparrilla on November 26, 2012, 04:42:47 am
I see, thanks a lot man. That makes sense.
Title: Re: Issue with TIME tutorial
Post by: Laurent on November 26, 2012, 07:55:48 am
Quote
system(window functions only)
So it's window... not system ;)