"expected one of the following keywords: nano, milli"); configuration.getEngineDefaults().getTimeSource().setTimeSourceType(timeSourceType);
/** * Makes the time source provider. * @param configSnapshot the configuration * @return time source provider */ protected static TimeSourceService makeTimeSource(ConfigurationInformation configSnapshot) { if (configSnapshot.getEngineDefaults().getTimeSource().getTimeSourceType() == ConfigurationEngineDefaults.TimeSourceType.NANO) { // this is a static variable to keep overhead down for getting a current time TimeSourceService.IS_SYSTEM_CURRENT_TIME = false; } return new TimeSourceService(); }