diff options
-rw-r--r-- | crypto/crypto.csproj | 5 | ||||
-rw-r--r-- | crypto/src/util/Times.cs | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/crypto/crypto.csproj b/crypto/crypto.csproj index 9bdd3b09a..a8f95a2bf 100644 --- a/crypto/crypto.csproj +++ b/crypto/crypto.csproj @@ -5949,6 +5949,11 @@ BuildAction = "Compile" /> <File + RelPath = "src\util\Times.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "src\util\collections\CollectionUtilities.cs" SubType = "Code" BuildAction = "Compile" 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; + } + } +} |