Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/com/esotericsoftware/minlog/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Date;

/**
* A low overhead, lightweight logging system.
Expand Down Expand Up @@ -174,12 +173,12 @@ private Log () {
* logging differently.
*/
static public class Logger {
private long firstLogTime = new Date().getTime();
private long firstLogTime = System.currentTimeMillis();

public void log (int level, String category, String message, Throwable ex) {
StringBuilder builder = new StringBuilder(256);

long time = new Date().getTime() - firstLogTime;
long time = System.currentTimeMillis() - firstLogTime;
long minutes = time / (1000 * 60);
long seconds = time / (1000) % 60;
if (minutes <= 9) builder.append('0');
Expand Down