public static double GetTimerSeconds(StdTimePoint timePoint) { if (timePoint == null) { throw new ArgumentNullException(nameof(timePoint)); } timePoint.ThrowIfDisposed(); return(NativeMethods.op_getTimeSeconds(timePoint.NativePtr)); }
public static void PrintTime(StdTimePoint timePoint, string firstMessage, string secondMessage, Priority priority) { if (timePoint == null) { throw new ArgumentNullException(nameof(timePoint)); } timePoint.ThrowIfDisposed(); var firstMessageBytes = Encoding.UTF8.GetBytes(firstMessage ?? ""); var secondMessageBytes = Encoding.UTF8.GetBytes(secondMessage ?? ""); NativeMethods.op_printTime(timePoint.NativePtr, firstMessageBytes, secondMessageBytes, priority); }