Here is a script to illustrate ...
Suppose timer.h provides a tick_count () macro that returns the number of timer interrupts that have occurred.
One module (rpm_reader.h) using timer A for time synchronization:
#define _TIMERA #include "timer.h" #undef _TIMERA
Another module (lap_time.h) uses timer C for the time interval
#define _TIMERC #include "timer.h" #undef _TIMERC
rpm_reader will return the tick counter from timer A when it calls tick_count (), and lap_time will get its counter from timer C.
(My apologies for answering my own question, but asking the question helped me come to this revelation.)
Jeffv source share