Timing techniques applied to distributed modular high-energy astronomy: The HERMES project