Codota Logo
UsecTimestamp.add
Code IndexAdd Codota to your IDE (free)

How to use
add
method
in
com.jkoolcloud.tnt4j.core.UsecTimestamp

Best Java code snippets using com.jkoolcloud.tnt4j.core.UsecTimestamp.add (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: com.jkoolcloud/tnt4j

/**
 * Adds the specified UsecTimestamp to this one.
 *
 * @param other
 *            timestamp to add to current one
 */
public void add(UsecTimestamp other) {
  add(other.msecs, other.usecs);
}
origin: com.jkoolcloud/tnt4j

/**
 * Purpose of this method is to make this class compatible with Groovy script standard for number operator "plus"
 * {@code '+'} overloading. See <a href="http://groovy-lang.org/operators.html">Groovy operators spec</a> section
 * "Operator overloading".
 * <p>
 * Performs same as {@link #add(UsecTimestamp)}.
 *
 * @param other
 *            timestamp to add to current one
 * @return current UsecTimestamp instance
 *
 * @see #add(UsecTimestamp)
 */
public UsecTimestamp plus(UsecTimestamp other) {
  add(other);
  return this;
}
origin: com.jkoolcloud/jesl

private void pauseSimulator(Attributes attributes) throws SAXException {
  long usec = 0;
  int i;
  for (i = 0; i < attributes.getLength(); i++) {
    String attName = attributes.getQName(i);
    String attValue = expandEnvVars(attributes.getValue(i));
    if (attName.equals(SIM_XML_ATTR_MSEC)) {
      usec = Long.parseLong(attValue) * 1000L;
    } else if (attName.equals(SIM_XML_ATTR_USEC)) {
      usec = Long.parseLong(attValue);
    } else {
      throw new SAXParseException("Unknown <" + SIM_XML_SLEEP + "> attribute '" + attName + "'", saxLocator);
    }
  }
  if (usec > 0) {
    simCurrTime.add(0L, TNT4JSimulator.varyValue(usec));
    TNT4JSimulator.trace(simCurrTime, "Executed sleep, usec=" + usec);
  }
}
origin: com.jkoolcloud/tnt4j

add(0, usecs);
origin: com.jkoolcloud/jesl

simCurrTime.add(0, elapsed);
curEvent.stop(simCurrTime, elapsed);
TNT4JSimulator.debug(simCurrTime, "Ran event: " + name + ", elapsed.usec=" + elapsed);
com.jkoolcloud.tnt4j.coreUsecTimestampadd

Javadoc

Adds the specified time values to this UsecTimestamp.

Popular methods of UsecTimestamp

  • <init>
    Creates UsecTimestamp based on specified Date.
  • difference
    Computes the difference between this timestamp and the specified one (as this - other). It relates t
  • getTimeUsec
    Gets current time stamp value to microseconds resolution.
  • assignLamportClock
    Assign local Lamport clock based on the value of the received Lamport clock.
  • getLamportClock
    Returns Lamport clock value of this time stamp (based on Lamport Clock algorithm)
  • getTimeMillis
    Gets current time stamp value to milliseconds resolution.
  • getTimeStamp
    Returns the string representation of the current timestamp, with a given time zone.
  • hashCode
  • initFromTimestamp
  • now
    Returns UsecTimestamp based on current time with microsecond precision/accuracy
  • setTimeUsec
    Sets UsecTimestamp based on specified microsecond timestamp.
  • setTimestampValues
    Creates UsecTimestamp based on specified millisecond timestamp and fractional microsecond.
  • setTimeUsec,
  • setTimestampValues,
  • subtract,
  • toString

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • JFrame (javax.swing)
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now