MaDKit forum

Welcome All !
Please, use explicit topic names when creating new threads. Thanks.

You are not logged in.

#1 2014-04-25 14:39:45

jo
Member
Registered: 2014-02-23
Posts: 10

Display the agent execution time

Hi,

How to display the agent's execution time?

Thanks

Offline

#2 2014-05-05 09:30:14

fmichel
Administrator
From: Montpellier
Registered: 2009-03-24
Posts: 176
Website

Re: Display the agent execution time

Hi,

Personnaly, I use something like (extracted from the javadoc)

" For example, to measure how long some code takes to execute:"

long startTime = System.nanoTime();
// ... the code being measured ...
long estimatedTime = System.nanoTime() - startTime;

Offline

#3 2014-05-05 14:22:01

jo
Member
Registered: 2014-02-23
Posts: 10

Re: Display the agent execution time

Thank you

Offline

Board footer