简体   繁体   中英

how to save time when method was called last time

How to save the time when the a certain method was called. If I create a Gregorian Calendar and then save the time with long variable =calendar.getTimeInMillis() this variable keeps running. How to fix this.

采用 :

long t1 = System.currentTimeMillis();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM