Page 1 of 1

Do some timing in javacard

Posted: Mon Jan 11, 2016 5:45 am
by chaholic
Hi everyone!

I want to do some timing for performance analysis of my code. Firstly I used System.getCurrentTimeMillis(), however this only provides few decimals for my analysis. In java there is System.nanoTime(), are there any similar, or other timings that I can use in JavaCard?

Note:
My javacard version - 3.0.4

Re: Do some timing in javacard

Posted: Tue Jan 12, 2016 10:49 pm
by mabel
System.nanoTime() is just for your desktop Java code. As far as I know there is no internal clock in a JavaCard3 so you will not find any timing methods.