Implement Math/Mathf.pow

This commit is contained in:
dcodeIO
2018-03-26 03:50:06 +02:00
parent e26734ef90
commit e75d006d26
18 changed files with 10062 additions and 988 deletions

View File

@ -765,10 +765,16 @@ function measure(fn) {
exports.measure = measure;
function formatTime(time) {
return time ? (time / 1e6).toFixed(3) + " ms" : "N/A";
}
exports.formatTime = formatTime;
/** Formats and prints out the contents of a set of stats. */
function printStats(stats, output) {
function format(time, count) {
return time ? (time / 1e6).toFixed(3) + " ms" : "N/A";
return formatTime(time);
}
(output || process.stdout).write([
"I/O Read : " + format(stats.readTime, stats.readCount),