Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何节省调用某个方法的时间。如果我创建一个公历,然后使用long variable =calendar.getTimeInMillis()此变量保存时间,则继续运行。如何解决这个问题。
long variable =calendar.getTimeInMillis()
采用 :
long t1 = System.currentTimeMillis();