The 24-hour run (counterpart of this event from University of Leuven) has their counting system open-sourced here (although it's no longer used I think):
https://github.com/ULYSSIS-KUL/ipp/
Great blog post @robinpdev!