[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fossil-users
Subject:    Re: [fossil-users] stime and utime
From:       Stephan Beal <sgbeal () googlemail ! com>
Date:       2013-05-11 12:59:40
Message-ID: CAKd4nAgEE_duNSYaBnhWUUB6EktR71+mL_vep7LekgiDnk3eJw () mail ! gmail ! com
[Download RAW message or body]

On Sat, May 11, 2013 at 1:13 PM, Lluís Batlle i Rossell <viric@viric.name>wrote:

> So the th1 addition is the only work left?
>

i believe so. And someone to make sure it doesn't misbehave on Windows.

i wouldn't want to replace the existing functions, but it would be easy to
add, e.g. [runtime] which returns the microseconds (cpu+user) since fossil
initialized its main timer. So... a few minutes later:

runtime=<th1>
puts [runtime]
</th1>

Feed that into (fossil test-th-render)

and i see:

[stephan@host:~/cvs/fossil/fossil/src]$ f test-th-render 1.th1
runtime=0

which mirrors what i'm seeing in the JSON API when running in CLI mode
(local server mode generally has a non-0 time).

When adding that output to my footer i'm seeing times which are always 0 or
a multiple of 4000 uSec, implying that my system's precision here is only
4ms.

i'm not sure it will really solve your original problem, but if it sounds
like it will i'll get it checked in. Suggestions are welcomed.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal

[Attachment #3 (text/html)]

<div dir="ltr">On Sat, May 11, 2013 at 1:13 PM, Lluís Batlle i Rossell <span \
dir="ltr">&lt;<a href="mailto:viric@viric.name" \
target="_blank">viric@viric.name</a>&gt;</span> wrote:<br><div \
class="gmail_extra"><div class="gmail_quote"> <blockquote class="gmail_quote" \
style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div \
class="im"><span style="color:rgb(34,34,34)">So the th1 addition is the only work \
left?</span></div> </blockquote><div style><br></div><div style>i believe so. And \
someone to make sure it doesn&#39;t misbehave on Windows.</div><div><br></div><div \
style>i wouldn&#39;t want to replace the existing functions, but it would be easy to \
add, e.g. [runtime] which returns the microseconds (cpu+user) since fossil \
initialized its main timer. So... a few minutes later:</div> <div \
style><br></div><div style><div>runtime=&lt;th1&gt;</div><div>puts \
[runtime]</div><div>&lt;/th1&gt;</div></div><div><br></div><div style>Feed that into \
(fossil test-th-render)</div><div style><br></div><div style>and i see:</div> <div \
style><br></div><div style><div>[stephan@host:~/cvs/fossil/fossil/src]$ f \
test-th-render 1.th1 </div><div>runtime=0</div><div><br></div><div style>which \
mirrors what i&#39;m seeing in the JSON API when running in CLI mode (local server \
mode generally has a non-0 time).</div> </div><div><br></div><div style>When adding \
that output to my footer i&#39;m seeing times which are always 0 or a multiple of \
4000 uSec, implying that my system&#39;s precision here is only 4ms.</div><div \
style><br></div> <div style>i&#39;m not sure it will really solve your original \
problem, but if it sounds like it will i&#39;ll get it checked in. Suggestions are \
welcomed.</div><div style><br></div></div>-- <br>----- stephan beal<br><a \
href="http://wanderinghorse.net/home/stephan/" \
target="_blank">http://wanderinghorse.net/home/stephan/</a><div> <a \
href="http://gplus.to/sgbeal" target="_blank">http://gplus.to/sgbeal</a></div> \
</div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic