refactor of gtsp/clocksync_eval