Jump to content


Dawoodoz

Member Since 11 Feb 2010
Offline Last Active May 07 2013 12:15 PM
-----

Topics I've Started

System time in floating point seconds since midnight (VB and C#)

02 April 2013 - 07:26 PM

I have trouble with finding the floating point system time from midnight in C#.
I need it for animation and therefor it would be useless to have it rounded to whole seconds and restarting every minute like in a calendar time.
The timer object can't be used because it only wait at least the specified delay and drift away if the system is busy.
In VB6 you write Timer to get it.
In VB.net you write VB.Timer() after importing Microsoft.VisualBasic to VB.
How do I get the same thing in C# so that my SDK samples can be consistent between multiple languages?