This repo has a Pin tool which counts the number of instructions an application takes to run . When the application uses the overloaded operators to inject error, those instructions are discounted.