From f6e6c9cc7e1a72ea86e7a98f7df2696bc8d5bbfa Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 20 Aug 2014 20:58:33 +0700 Subject: Add Times utility class --- crypto/src/util/Times.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 crypto/src/util/Times.cs (limited to 'crypto/src/util') 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; + } + } +} -- cgit 1.4.1