[C]Does anyone know a good timing library?<solved>

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

DJ Omnimaga wrote:Is SDL for all programming language for PC like Java, Visual Basic, Python and stuff?
SDL is a C API, so can be used from any language that lets you invoke a C API (eg most .NET lanuages through P/Invoke, but there's a .NET version in Tao.SDL anyway).
User avatar
Halifax
Sir Posts-A-Lot
Posts: 225
Joined: Mon 01 Jan, 2007 10:39 am
Location: Pennsylvania, US

Post by Halifax »

coelurus wrote:You know what? SDL uses timeGetTime in the newest snapshot.
Okay...in your post prior to that you said nothing about timeGetTime being portable.
coelurus
Calc Wizard
Posts: 585
Joined: Sun 19 Dec, 2004 9:02 pm
Location: Sweden
Contact:

Post by coelurus »

It isn't, but if you'd chosen that one-liner together with gettimeofday from the start over a month ago, then all would have been working well.

Sry, I'm one of those "as few silly little dependencies as possible" :)
User avatar
Halifax
Sir Posts-A-Lot
Posts: 225
Joined: Mon 01 Jan, 2007 10:39 am
Location: Pennsylvania, US

Post by Halifax »

Uhmm I am one too, but that doesn't excuse the fact that SDL is already ported to 10+ platforms, and that I am not just using it for timing.

Also I just posted about it in case someone else needed the answer. I have been using it for ~month already.
Post Reply