static Snowflake() { for (var i = 0; i < _instances.Length; i++) { _instances[i] = new SnowflakeInstance(i); } }
public void In100Years() { var snowflake = new SnowflakeInstance(null, DateTimeOffset.UtcNow.AddYears(-100)); Print(snowflake); }
public void Month() { var snowflake = new SnowflakeInstance(null, DateTimeOffset.UtcNow.AddMonths(-1)); Print(snowflake); }
public void LargeEpoch() { var snowflake = new SnowflakeInstance(null, DateTimeOffset.UtcNow); Print(snowflake); }
public void SmallEpoch() { var snowflake = new SnowflakeInstance(null, DateTimeOffset.MinValue); Print(snowflake); }
public void Generate() { var snowflake = new SnowflakeInstance(); Print(snowflake); }
public void StressOneInstance() { var snowflake = new SnowflakeInstance(); Run(() => snowflake.Timestamp); }