In the test modules fro for IMC a few stopwatches are included to be able to time Command and DataReady calls. The result is written directly in the module output window.
Its implemented both in the .Net 6 sample IMC modules and in the Noah 4 IMC2 sample modules.
Get Coupler Codes and Clear Curve Commands has Stopwatch included in the IMCClient.
...
Dataready(String[]) and Request new Target has Stopwatch in the serverIMCServer.
...
Performance result on a fast developer PC
...