Click here to Skip to main content
15,886,631 members
Articles / Programming Languages / C

Optimized Enter/Leave Logger

Rate me:
Please Sign up or sign in to vote.
4.73/5 (4 votes)
14 Jul 2013CPOL18 min read 27.5K   741   22  
Optimized method to log Enter and Leave information of functions.
#pragma once

class TimeParser
{
public:
    TimeParser( const DWORD dwStartTime_i, const SYSTEMTIME& stStartupTime_i );
    ~TimeParser(void);
    SYSTEMTIME ConvertTickCountToSysTime( const DWORD dwTickCount_i );


private:

    CTime       m_SystemStartTime;
    SYSTEMTIME  m_stStartTime;
    DWORD       m_dwStartTime;

};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions