What would be the benefits to use MaxClock instead of a [metro] object firing bang to .. the JAVA itself?
maybe it is a philosophical question ?!
There shouldn’t be much difference, it’s just it makes your object self contained.
it was maybe a bit philosophical, showing my lack of knowledge.. but very good to know.
One thing to watch out for using
MaxClock: I remember last summer using
MaxClock in a project and sometimes when the class I was writing would throw a
RuntimeException this would break MaxClock until the object was reinstantiated. I never got to the bottom of this at the time and just switched to using a
metro to drive the process.
I’m not saying to stay away from
MaxClock as personally I think it makes the code nicer, but just keep this in mind if you see any strange behavior after throwing an exception.
C74 RSS Feed | © Copyright Cycling '74