From: Eric Hofreiter Date: 2005-11-11T13:02:32+09:00 Subject: Accurate Timing in ruby --0-1621724963-1131681748=:82252 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Believe it or not, I'm attempting to make an action-driven game with ruby. Is there a way to get the time in milliseconds since the program started, or something similar? I've tried using Time.now.to_f, but all too often that value will be the same in two consecutive update calls, causing jumps in motion and "infinite" fps readings. Also, will extending calculation-heavy classes to C up the performance enough to make a fairly sophisticated game run? I'm talking like maybe a NES sports game as far as complexity goes. For example, a vector class has about 15-20 methods that all do a few simple computations. Would C significantly speed that up or would the fact that ruby still has to make the calls bog it back down? --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click. --0-1621724963-1131681748=:82252--