long getCurrentTime() {
    if (dm == null) {
      return -1;
    }
    return DLockService.getLockTimeStamp(dm);
  }
Returns the current time in absolute milliseconds for use calculating lease expiration times.

@return the current time in absolute milliseconds
geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DLockToken.java