Gets the timestamp.

import Batch = require("nativescript-batch");

var b = Batch.newBatch(function(ctx) {
    ctx.log("Hello!");
});

b.name = "Operation #1";

b.addLogger(function(ctx) {
    console.log("[" + ctx.time + "] " + ctx.message);
});

b.start();