diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-08-20 20:58:33 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-08-20 20:58:33 +0700 |
commit | f6e6c9cc7e1a72ea86e7a98f7df2696bc8d5bbfa (patch) | |
tree | c3992f791664ce9553b1789372b6bba24fc10415 /crypto/src | |
parent | Port of Deterministic-DSA from Java API (diff) | |
download | BouncyCastle.NET-ed25519-f6e6c9cc7e1a72ea86e7a98f7df2696bc8d5bbfa.tar.xz |
Add Times utility class
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/util/Times.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crypto/src/util/Times.cs b/crypto/src/util/Times.cs new file mode 100644 index 000000000..99a78d21a --- /dev/null +++ b/crypto/src/util/Times.cs @@ -0,0 +1,14 @@ +using System; + +namespace Org.BouncyCastle.Utilities +{ + public sealed class Times + { + private static long NanosecondsPerTick = 100L; + + public static long NanoTime() + { + return DateTime.UtcNow.Ticks * NanosecondsPerTick; + } + } +} |