2021-08-01 07:25:44 +02:00
|
|
|
const log = {}
|
|
|
|
|
|
|
|
log.print = function (string) {
|
|
|
|
process.stdout.write(string)
|
|
|
|
}
|
|
|
|
|
|
|
|
log.start = function () {
|
|
|
|
this.print('Starting...\n')
|
2021-08-01 18:45:15 +02:00
|
|
|
console.time('Done in')
|
2021-08-01 07:25:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
log.finish = function () {
|
2021-08-01 18:45:15 +02:00
|
|
|
console.timeEnd('Done in')
|
2021-08-01 07:25:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = log
|