Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
AnswerRe: Converting string data(which contains EBCDIC, Packed decimal and Endian data) to byte array Pin
Luc Pattyn24-Aug-09 1:43
sitebuilderLuc Pattyn24-Aug-09 1:43 
Question[Message Deleted] Pin
DIPAK@EMSYS23-Aug-09 22:51
DIPAK@EMSYS23-Aug-09 22:51 
AnswerRe: Remoting ....need help PinPopular
Mycroft Holmes23-Aug-09 23:41
professionalMycroft Holmes23-Aug-09 23:41 
GeneralRe: Remoting ....need help Pin
DIPAK@EMSYS24-Aug-09 0:15
DIPAK@EMSYS24-Aug-09 0:15 
GeneralRe: Remoting ....need help Pin
leckey24-Aug-09 4:05
leckey24-Aug-09 4:05 
AnswerRe: Remoting ....need help Pin
stancrm24-Aug-09 0:41
stancrm24-Aug-09 0:41 
QuestionR6025 Pure Virtual Functiona Call Error. Pin
Tej_dev23-Aug-09 22:51
Tej_dev23-Aug-09 22:51 
Questiona puzzle for timing method Pin
dragon_yue23-Aug-09 22:31
dragon_yue23-Aug-09 22:31 
public interface IncDec<br />
{<br />
void Increment();<br />
void Decrement();<br />
}<br />
<br />
public class MyIncDec : IncDec<br />
{<br />
private int x;<br />
public MyIncDec(int x)<br />
{<br />
this.x = x;<br />
}<br />
public void Increment()<br />
{<br />
this.x++;<br />
}<br />
public void Decrement()<br />
{<br />
this.x--;<br />
}<br />
}


Part 1: Implement a class which can be used to measure how long each invocation of the Increment and Decrement method takes (in milliseconds) and prints out this information. The class should fit in more or less transparently with existing clients of the IncDec interface.
Part 2: Imagine you need to do something similar (timing of method calls) for many places in an application. What other ideas come to mind, e.g. could you propose other ideas for getting timing information more conveniently?

I got this question need to answer, it is simple, just something confused to me. hope anyone can help me.
btw, what "The class should fit in more or less transparently with existing clients of the IncDec interface.
" means?
AnswerRe: a puzzle for timing method Pin
stancrm23-Aug-09 22:39
stancrm23-Aug-09 22:39 
AnswerRe: a puzzle for timing method Pin
Bekjong23-Aug-09 23:20
Bekjong23-Aug-09 23:20 
GeneralRe: a puzzle for timing method Pin
dragon_yue29-Aug-09 2:40
dragon_yue29-Aug-09 2:40 
AnswerRe: a puzzle for timing method Pin
Luc Pattyn24-Aug-09 0:56
sitebuilderLuc Pattyn24-Aug-09 0:56 
GeneralRe: a puzzle for timing method Pin
dragon_yue29-Aug-09 2:41
dragon_yue29-Aug-09 2:41 
QuestionWeb Browser Control. Pin
egpuyos23-Aug-09 22:26
egpuyos23-Aug-09 22:26 
AnswerRe: Web Browser Control. Pin
stancrm23-Aug-09 22:36
stancrm23-Aug-09 22:36 
Questionpls help me Pin
rashid200923-Aug-09 21:35
rashid200923-Aug-09 21:35 
AnswerRe: pls help me Pin
Blue_Boy23-Aug-09 21:47
Blue_Boy23-Aug-09 21:47 
AnswerRe: pls help me Pin
rashid200923-Aug-09 21:56
rashid200923-Aug-09 21:56 
GeneralRe: pls help me Pin
Christian Graus23-Aug-09 23:05
protectorChristian Graus23-Aug-09 23:05 
AnswerRe: pls help me Pin
DIPAK@EMSYS23-Aug-09 23:30
DIPAK@EMSYS23-Aug-09 23:30 
QuestionUpdating one form through another forms Pin
Rahul DSG23-Aug-09 21:01
Rahul DSG23-Aug-09 21:01 
AnswerRe: Updating one form through another forms Pin
Blue_Boy23-Aug-09 21:10
Blue_Boy23-Aug-09 21:10 
GeneralRe: Updating one form through another forms Pin
Rahul DSG23-Aug-09 21:21
Rahul DSG23-Aug-09 21:21 
GeneralRe: Updating one form through another forms Pin
Blue_Boy23-Aug-09 21:26
Blue_Boy23-Aug-09 21:26 
GeneralRe: Updating one form through another forms Pin
Rahul DSG23-Aug-09 21:41
Rahul DSG23-Aug-09 21:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.