Find how long it takes to execute code using eval()

Hello everyone,

Im making a discord bot with a eval command. I have everything setup but i need to find out how long in miliseconds it takes to execute code using eval()

Thanks in advance

It looks like this answer might help?

i get this error ReferenceError: performance is not defined am i missing something?

I think you need to import the performance class (instructions for which are under code sample in the Stack Overflow answer).

Thanks! my eval command now shows the miliseconds!