Wednesday, 30 December 2009

New Year, new Library

F32 yeah enbiggen

As part of getting ready for my new job, I'm in the process of publishing a lot of the common code that I've been using over the years and I thought why not start a collection. And so the very humble and small PolymonkeyLibs begins.

The first official package is polymonkey.time it features 3 classes that relate to (you guessed it) time.

Time - used for keeping track of TimeDelta (the time in seconds of the previous frame) can also speed up and slow down time.

TimerEvent - A helper class that will automatically call a timerEvent() method in a set number of seconds.

StopWatch - A helper class for timing how long an operation takes.

Docs, Examples and version 001 of the library are in the Download tab of the page above. If you've got questions / problems / requests then send em this way.

Matt Ditton

Disclaimer: Although the internals are as accurate as possible. Everything gets converted to floats or ints when talking to processing. So your mileage my vary. And although it works like a charm I wouldn't use it to run a pacemaker or anything.

Labels: , , ,