【文件属性】:
文件名称:level-time:LevelUP 操作时间记录器
文件大小:6KB
文件格式:ZIP
更新时间:2021-07-13 00:37:41
JavaScript
概要
操作时间记录器
用法
var levelTime = require ( 'level-time' ) ;
var time = levelTime ( db ) ;
// Attach event handler to run on levelup operation start
time . on ( 'start' , function ( op ) {
console . log ( op ) ;
/* { name: 'createReadStream',
args: [],
chunksCount: 0,
firstChunkTime: Infinity,
totalTime: Infinity,
start: Fri Nov 14 2014 16:46:33 GMT+0200 (EET),
【文件预览】:
level-time-master
----benchmark()
--------benchmark.js(1KB)
----.travis.yml(36B)
----LICENSE(1KB)
----test()
--------test.js(7KB)
----README.md(2KB)
----.gitignore(40B)
----index.js(3KB)
----package.json(856B)