Code example for AtomicLong

Methods: get

0
    void set(long t) {
        time.set(t);
    } 
 
    public long now() { 
        return time.get();
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java