Package com.cetsoft.caudit.stopwatch

Examples of com.cetsoft.caudit.stopwatch.CountingStopwatch


      String auditName = mapper.getAuditName(auditId);
      switch (type) {
      case BASIC_STOPWATCH:
        return new Stopwatch(auditId, auditName);
      case COUNTING_STOPWATCH:
        return new CountingStopwatch(auditId, auditName);
      case LONG_QUANTITY:
        return new LongQuantity(auditId, auditName);
      case DOUBLE_QUANTITY:
        return new DoubleQuantity(auditId, auditName);
      case COMPLEX_QUANTITY:
View Full Code Here


    }).start();
    for (int i=0;i<10;i++) {
      new Thread(new Runnable() {
        public void run() {
          while (true) {
            CountingStopwatch stopwatch = Audits.getCountingStopwatch(COUNTING_STOPWATCH_ID);
            stopwatch.start();
            try {
              Thread.sleep((long) (Math.random() * 100));
            } catch (InterruptedException e) {
              e.printStackTrace();
            }
            stopwatch.stop(23);
          }
        }
      }).start();
    }
    new Thread(new Runnable() {
View Full Code Here

TOP

Related Classes of com.cetsoft.caudit.stopwatch.CountingStopwatch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.