Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
import java.util.Date;
public class Test {
public static void main(String args[]) {
// Инициализация объекта date
Date date = new Date();
// Вывод текущей даты и времени с использованием toString()
System.out.println(date.toString());
}
}
Maybe the execution time, ie. time since program start?
If yes, then org.apache.commons.lang.time.StopWatch is convenient.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question