summary refs log tree commit diff
path: root/crypto/src/util/Times.cs
blob: 99a78d21a14517adee07b83880504e22791c19ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
        }
    }
}