Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (true) {
- start = System.nanoTime();
- // g2dScrollArea.setColor(scrollAreaBackgroundColor);
- // g2dScrollArea.fillRect(0, 0, bufferedImage.getWidth(), bufferedImage.getHeight());
- // g2dScrollArea.setColor(scrollAreaBorderColor);
- // g2dScrollArea.drawLine(bufferedImage.getWidth() - 1, 0, bufferedImage.getWidth() - 1, bufferedImage.getHeight());
- //
- // for (int i = 0; i < byteBuffer.capacity(); i += Vec4ub.SIZE) {
- // byteBuffer
- // .put(i + 0, (byte) 200)
- // .put(i + 1, (byte) 200)
- // .put(i + 2, (byte) 200)
- // .put(i + 3, (byte) 10);
- // }
- ////
- // for (int i = 0; i < 768; i++) {
- // byteBuffer
- // .put(i * 1024 + 0, (byte) 100)
- // .put(i * 1024 + 1, (byte) 100)
- // .put(i * 1024 + 2, (byte) 100)
- // .put(i * 1024 + 3, (byte) 100);
- // }
- for (int i = 0; i < bytes.length; i += Vec4ub.SIZE) {
- bytes[i + 0]= (byte) 200;
- bytes[i + 1]= (byte) 200;
- bytes[i + 2]= (byte) 200;
- bytes[i + 3]= (byte) 10;
- }
- //
- for (int i = 0; i < 768; i++) {
- bytes[i*1024 + 0]= (byte) 100;
- bytes[i*1024 + 1]= (byte) 100;
- bytes[i*1024 + 2]= (byte) 100;
- bytes[i*1024 + 3]= (byte) 100;
- }
- total = System.nanoTime() - start;
- System.out.println(total + " ns");
- // System.out.println(EC_UnitFormatter.nanoToString(total));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement