<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color="#003300" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#003300'>Am si eu nelamuriri:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#003300" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#003300'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#003300" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#003300'>In Windows: cum se
calculeaza CPUTime:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#003300" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#003300'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 color="#003300"
face=Verdana><span style='font-size:10.0pt;font-family:Verdana;color:#003300'>Folosind
</span></font><font size=2 color="#003300" face=Verdana><span style='font-size:
10.0pt;font-family:Verdana;color:#003300'>GetProcessTimes() – obtinem kernel
si user time. <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 color="#003300"
face=Verdana><span style='font-size:10.0pt;font-family:Verdana;color:#003300'>CPUTime
este user time sau kernel time + user time?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#003300" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#003300'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#003300" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#003300'>In linux presupun ca
este </span></font><i><font size=2 color="#003300" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#003300;font-style:italic'>tms
-> utime </span></font></i><font size=2 color="#003300" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#003300'>obtinut cu times() ?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#003300" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#003300'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#003300" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#003300'>Avand in vedere ca ceea
ce returneaza times() se reseteaza cam la 70 minute (??) si ca astfel am putea
sa determinam o diferenta negativa pentru AllTime sau IOTime presupun ca este
indicat sa folosim gettimeofday . <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#003300" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#003300'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#003300" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#003300'>Multumesc, <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#003300" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#003300'><o:p> </o:p></span></font></p>
<p class=MsoNormal><st1:place w:st="on"><font size=2 color="#003300"
face=Verdana><span style='font-size:10.0pt;font-family:Verdana;color:#003300'>Florin</span></font></st1:place><font
size=2 color="#003300" face=Verdana><span style='font-size:10.0pt;font-family:
Verdana;color:#003300'> Popescu <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'>CA 343</span></font><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>
</div>
</body>
</html>