Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7827521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:54:52+00:00 2026-06-02T09:54:52+00:00

I am trying out the hands on labs for MS Enterprise Library – Logging

  • 0

I am trying out the hands on labs for MS Enterprise Library – Logging Application block.

By adding a Trace, I get a ‘message’ on my ‘flat file’ listener saying: “Message: End Trace: Activity ‘6455494c-0602-45c9-8a10-052cdd39e5cb’ in method ‘EnoughPI.Calc.Calculator.Calculate’ at 767616631287998 ticks (elapsed time: 10.292 seconds)“

Can I also get the elapsed time ‘alone’, or say elapsed tics, from the trace.

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T09:54:54+00:00Added an answer on June 2, 2026 at 9:54 am

    The API does not expose the timing information on a public interface. You could use reflection to obtain the information but you do so at your own peril (since it’s dependent on the internal implementation which could change):

    using (Tracer tracer = new Tracer("General"))
    {
        FieldInfo fieldInfo = typeof(Tracer).GetField("stopwatch", BindingFlags.NonPublic | BindingFlags.Instance);
        var sw = fieldInfo.GetValue(tracer) as Stopwatch;
        Console.WriteLine(sw.ElapsedMilliseconds);
    }
    

    Another alternative would be to write your own Tracer implementation (based on the Enterprise Library code) which exposes any properties you are interested in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set up logging with Microsoft's Enterprise Library (log4net seems to be
Trying out the examples found on pleac.sf.net , I'm not able to get an
While trying out an experimental UINavigationController-based iPhone application, I ran into a problem when
I was doing some hands-on with the Unix sed command. I was trying out
I am trying to get some hands-on learning of divs. I'm converting a site
I'm trying to get my hands dirty on Google Maps API v3. But now
I am trying to get my hands on Rspec2 with Rails3 (never used rspec
If I print out ~100 in Java, I get -101 . I'm trying to
After trying out VS2010b2 also my VS2008 installation changes the versions of solution and
Just trying out Hibernate (with Annotations) and I'm having problems with my mappings. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.