Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

access the CPU timer inside a Java card Applet,

JavaCard Applet Development Related Questions and Answers.
Heerden
Posts: 11
Joined: Tue Dec 29, 2015 5:14 am
Points :87
Contact:

access the CPU timer inside a Java card Applet,

Post by Heerden » Tue Jan 12, 2016 4:54 am

For JavaCard 3, As far as I know, it seems to be possible to access the CPU timer inside a Java card Applet, since the method System.getCurrentMillis() is available. But Is it possible for Javacard 2 either?
Are there any Javacards with proprietary extensions that allow to access a timer?

AmigoJack
Posts: 17
Joined: Thu Nov 19, 2015 4:56 am
Points :87
Contact:

Re: access the CPU timer inside a Java card Applet,

Post by AmigoJack » Thu Jan 14, 2016 11:01 pm

Hi friend.
There is no timer defined for Java Card 2.

A complicated way I can think of measuring the time
1. implementing a counter loop and evaluating the byte code length of each iteration
2. knowledge about the Java Card byte code to assembler translation
3. knowledge about how long this assembler commands take
4. knowledge about the smart card IC's clock frequency

Hope this can help you!

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 89 guests

JavaCard OS : Disclaimer