String getTimingStatement(String proceed, String target) {
        return "long start = java.lang.System.nanoTime();" +
                proceed +
                "long nanoTime = java.lang.System.nanoTime()-start;" +
                target.replaceAll(Pattern.quote("$time"),
                        Matcher.quoteReplacement("(nanoTime/1000000)").
                                replaceAll(Pattern.quote("$nanotime"),
                                        Matcher.quoteReplacement("(nanoTime)")));
    }
An abstract transform that adds time-consuming statistics code.

<p> See {@link ConstructorCallTimingTransformer}, {@link ConstructorExecutionTimingTransformer},
{@link InitializerExecutionTimingTransformer}, {@link MethodCallTimingTransformer},
{@link MethodExecutionTimingTransformer}
plugin/src/main/groovy/com/didichuxing/tools/droidassist/transform/enhance/TimingTransformer.java