Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static long REFERENCE = System.nanoTime();
- ...
- SimpleDateFormat dateKey = new SimpleDateFormat("yyyyMMddHHmmss");
- String delta = String.valueOf(System.nanoTime() - REFERENCE);
- byte[] timestamp = $(dateKey.format(date) + delta.substring(delta.length() - 9));
Add Comment
Please, Sign In to add comment