SourceMax.SimpleFlake/FlakeGenerator.cs
/// <summary>
/// Calculates the number of milliseconds that have elapsed since the Epoch time.
/// </summary>
/// <param name="now">DateTime value after Epoch time.</param>
/// <returns>A BigInteger value representing the number of milliseconds since the Epoch time.</returns>
Calculates the number of milliseconds that have elapsed since the Epoch time.
Calculates the number of milliseconds that have elapsed since the Epoch time .
protected virtual BigInteger GetMillisecondsSinceEpoch(DateTime now) {
            var millisecondsSinceEpoch = (now - this.Epoch).TotalMilliseconds;
            var bigMillisecondsSinceEpoch = new BigInteger(millisecondsSinceEpoch);
            return bigMillisecondsSinceEpoch;
        }
protected virtual BigInteger GetMillisecondsSinceEpoch ( DateTime now ) { var millisecondsSinceEpoch = ( now - this . Epoch ) . TotalMilliseconds ; var bigMillisecondsSinceEpoch = new BigInteger ( millisecondsSinceEpoch ) ; return bigMillisecondsSinceEpoch ; }
Calculates the number of milliseconds that have elapsed since the Epoch time.
Calculates the number of milliseconds that have elapsed since the Epoch time .
A BigInteger value representing the number of milliseconds since the Epoch time.
A BigInteger value representing the number of milliseconds since the Epoch time .
now
DateTime
DateTime value after Epoch time.
DateTime value after Epoch time .