Beispiel #1
0
        static string GetTimeString()
        {
            var st = new NativeMethods.SystemTime();

            NativeMethods.GetSystemTime(st);
            return(st.ToString());
        }
Beispiel #2
0
        static partial void LogTimeDetail(Traces traces, bool newLine, string description)
        {
            if (EnabledTraces.HasFlag(traces))
            {
                if (newLine)
                {
                    System.Diagnostics.Trace.WriteLine("");
                }
                var st = new NativeMethods.SystemTime();
                NativeMethods.GetSystemTime(st);

                System.Diagnostics.Trace.Write("{0} - ", st.ToString());
                Trace(traces, false, description);
            }
        }