Ayuda con el System.currentTimeMillis()
Publicado por Analia Tamayo (5 intervenciones) el 08/06/2016 16:03:41
Necesito saber los minutos, segundos y milisegundos con el System.currentTimeMillis() en el programa por favor
Valora esta pregunta


0
long time_start, time_end;
time_start = System.currentTimeMillis();
ReallyHeavyTask(); // llamamos a la tarea
time_end = System.currentTimeMillis();
System.out.println("the task has taken "+ ( time_end - time_start ) +" milliseconds");