summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/util/Times.cs14
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; + } + } +}