[英]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. 如果我创建一个公历,然后使用long variable =calendar.getTimeInMillis()
保存时间,则该变量将继续运行。 How to fix this. 如何解决这个问题。
采用 :
long t1 = System.currentTimeMillis();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.