Java tutorial
//package com.java2s; public class Main { public static int getTimeId() { int x = (int) System.nanoTime(); x ^= (x << 21); x ^= (x >>> 35); x ^= (x << 4); if (x < 0) x = 0 - x; return x; } }