Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package se.clock;
- import java.io.DataOutputStream;
- import java.io.File;
- import java.io.FileOutputStream;
- public class clock {
- public static void main(String[] args) throws Exception {
- try (DataOutputStream dos = new DataOutputStream(
- new FileOutputStream(
- new File("/tmp/nanoimage.data")))) {
- for (int i = 0; i < 250_000; i++) {
- dos.writeByte((byte) (System.nanoTime() & 0xff));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement