Here you can find the source of sleepForAuditGranularity()
public static void sleepForAuditGranularity() throws InterruptedException
//package com.java2s; /*//from w w w . j a v a 2s . c om * Copyright (c) 2006-2011 Nuxeo SA (http://nuxeo.com/) and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Florent Guillaume */ public class Main { /** * For audit, make sure event dates don't have the same millisecond. */ public static void sleepForAuditGranularity() throws InterruptedException { Thread.sleep(2); } }