timer in hmsd, organised code (split constants, utils.cpp, ect.)