Feature Request - Performance measurements

Are there any methods to profile a plugins performance?

I can use:

var time = new Date().getTime();

But is a more accurate measurement available?

var time = getMicrosecond();

Use Case:

Running a processor intensive operation such as exporting numerous renditions to see how long it takes.

There isn’t as of yet a way to get a more granular time yet, but we need this for our internal purposes as well, so we’re adding support for this in a future release.