static string GetTimeString()
        {
            var st = new NativeMethods.SystemTime();

            NativeMethods.GetSystemTime(st);
            return(st.ToString());
        }
Exemple #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);
            }
        }