SFML community forums
Bindings - other languages => DotNet => Topic started by: Fox3 on November 07, 2010, 02:13:16 am
-
Where did it go?
-
It has never existed, the .Net framework already has this kind of classes. That's why there's no binding for the system and network module.
-
What classes can be used instead?
I've looked at Stopwatch but apparently people are saying ElapsedTicks is messed up and ElapsedMilliseconds always returns 0 for me.
-
I've found Window.GetFrameTime the best way to sync update events etc. The .NET timer and StopWatch classes just don't seem to cut it when working to 10s of milliseconds. Try this:
http://www.sfml-dev.org/tutorials/1.3/window-time.php
-
Stopwatch is the most precise timer, it's the equivalent of QueryPerformanceCounter Windows API. Check Stopwatch.Frequency property to see how often it updates.
http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.aspx