Java Milliseconds tilNextMillis(long lastTimestamp)

Here you can find the source of tilNextMillis(long lastTimestamp)

Description

til Next Millis

License

Open Source License

Declaration

private static long tilNextMillis(long lastTimestamp) 

Method Source Code

//package com.java2s;

public class Main {
    private static long tilNextMillis(long lastTimestamp) {
        long timestamp = timeGen();
        while (timestamp <= lastTimestamp) {
            timestamp = timeGen();//from  w w  w .j a v  a2  s  . c o m
        }
        return timestamp;
    }

    private static long timeGen() {
        return System.currentTimeMillis();
    }
}

Related

  1. stripSubMillis(String iso8601string)
  2. strMillis(final long ns)
  3. strMillisOLD(long dlt)
  4. ticksToMilliseconds(long ticks)
  5. ticksWithMillisecondsSetTo(long ticks, int milliseconds)
  6. timeAfterMillis(final long millis)
  7. timeIncMillisToTimeControl(long startTimeMillis, long startIncMillis)
  8. timeMillisToDate(Long timeMillis)
  9. timeMillisToString(long timeMillis)