Performance measure of some block of code?

I’m looking for a way to make some performance measure.
Is there some built-in feature in the SDK to obtain the time elapsed beetween 2 call of theses functions.
(with thread safe support)
can we use as well these function in gateway and client script to do the same job.

There’s nothing built in.

You should roll your own as part of the function using System.nanoTime(). You need a static or instance field to hold the prior invocation’s value to compute a delta.

1 Like