Performance measure of some block of code?

ignition79
#1

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.

0 Likes

#2

There’s nothing built in.

0 Likes

#3

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