Skip to content

Commit

Permalink
Ignore prebuilds directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed May 10, 2016
1 parent d3226d2 commit 4d003a5
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build/
node_modules/
prebuilds/
38 changes: 38 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
var robot = require("./index.js");


var bmp = robot.screen.capture(0, 0, 500, 500);

//bmp.save("./test.bmp");
//
// var start = process.hrtime();
//
// var elapsed_time = function(note)
// {
// var precision = 3; // 3 decimal places
// var elapsed = process.hrtime(start)[1] / 1000000; // divide by a million to get nano to milli
// console.log(process.hrtime(start)[0] + " s, " + elapsed.toFixed(precision) + " ms - " + note); // print message + time
// start = process.hrtime(); // reset the timer
// }
//
// for (var i = 1; i < 1000; i++)
// {
// testColorAt();
// }
//
// function testColorAt()
// {
//
// var bmp = robot.screen.capture(0,0, 500, 500);
// //console.log(bmp.width);
// //console.log(bmp.height);
// //
// console.log(bmp)
// for (var x = 0; x < 1000; x++)
// {
// var hex = bmp.colorAt(2, 5);
// }
//
// elapsed_time("colorAt #" + i);
//
// }

0 comments on commit 4d003a5

Please sign in to comment.