Orangutan X2 time functions code

Does anyone have an implementation of the time functions for the Orangutan X2 to share? I am looking for something similar to the ones available as part of the Pololu library for the other robot controllers. I am particularly interested on time_reset() and get_ms() which require initialization of the OX2 timer.
Thanks

Never mind, I just got it working.
Cheers