From: Brian May <bam@snoopy.apana.org.au>
Subject: Re: timeouts
Date: Sun, 22 Aug 2004 14:25:59 +1000
Date: 2004-08-22T14:25:59+10:00 [thread overview]
Message-ID: <sa4pt5jre7c.fsf@snoopy.apana.org.au> (raw)
In-Reply-To: y27Vc.7035$3O3.483@newsread2.news.pas.earthlink.net
>>>>> "Jeffrey" == Jeffrey Carter <spam@spam.com> writes:
Jeffrey> The fact that the logged times decrease seems to indicate that the
Jeffrey> logging package is doing something funny.
Nothing that I can see:
function Strip(Value : in String) return String is
I : Natural := Value'First;
Continue : Boolean := True;
begin
while I <= Value'Last and Continue loop
if Value(I) = ' ' then
I := I + 1;
else
Continue := False;
end if;
end loop;
return Value(I..Value'Last);
end Strip;
function To_String(The_Time : in Time) return String is
Duration : Integer;
H : Integer range 0..23;
M : Integer range 0..60;
S : Integer range 0..60;
begin
Duration := Integer(Seconds(The_Time));
S := Duration mod 60;
Duration := (Duration-S)/60;
M := Duration mod 60;
Duration := (Duration-M)/60;
H := Duration mod 24;
return Strip(Integer'Image(H))&":"
&Strip(Integer'Image(M))&":"
&Strip(Integer'Image(S));
end To_String;
procedure Message(Module : in Module_Type;
Level : in Level_Type;
Text : in String) is
begin
if Display(Module,Level) then
Put_Line(To_String(Clock)&" "
&Module_Type'Image(Module)&" "
&Level_Type'Image(Level)&" "
&Text);
end if;
end Message;
Sure, the Duration := Integer(...) line may round the time up
(according to info I got in another thread), but I still fail to see
why a later log message should log an earlier time.
--
Brian May <bam@snoopy.apana.org.au>
next prev parent reply other threads:[~2004-08-22 4:25 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-18 23:46 timeouts Brian May
2004-08-19 1:03 ` timeouts Jeffrey Carter
2004-08-19 3:10 ` timeouts Brian May
2004-08-19 19:18 ` timeouts Jeffrey Carter
2004-08-22 4:25 ` Brian May [this message]
2004-08-22 11:00 ` timeouts Stephen Leake
2004-08-22 11:29 ` timeouts Brian May
2004-08-22 19:56 ` timeouts Jeffrey Carter
2004-08-27 10:22 ` timeouts Brian May
2004-08-27 10:31 ` Cygwin and gcc-ada 3.4.1 (was Re: timeouts) Jano
2004-09-13 15:05 ` Dr Steve Sangwine
2004-08-27 17:54 ` timeouts Jeffrey Carter
2004-08-28 0:24 ` timeouts Stephen Leake
2004-08-29 0:24 ` timeouts Brian May
2004-08-29 4:40 ` timeouts tmoran
2004-08-29 8:57 ` timeouts Brian May
2004-08-29 17:17 ` timeouts tmoran
2004-08-29 22:37 ` timeouts Brian May
2004-08-29 13:31 ` timeouts Stephen Leake
2004-08-29 22:32 ` timeouts Brian May
2004-08-30 1:06 ` timeouts Stephen Leake
2004-08-30 12:17 ` timeouts Jano
2004-08-19 3:40 ` timeouts Steve
2004-08-22 4:18 ` timeouts Brian May
2004-08-22 12:54 ` timeouts Jeff C,
2004-08-26 1:28 ` timeouts Brian May
2004-08-26 10:00 ` timeouts Pascal Obry
2004-08-26 11:34 ` timeouts Georg Bauhaus
2004-08-26 11:58 ` timeouts Jean-Marc Bourguet
2004-08-26 22:20 ` timeouts Brian May
2004-08-27 18:12 ` timeouts Pascal Obry
2004-08-26 12:30 ` timeouts Stephen Leake
2004-08-26 22:54 ` timeouts Brian May
2004-08-27 1:17 ` timeouts Stephen Leake
2004-08-27 1:31 ` timeouts tmoran
2004-08-27 8:03 ` timeouts Brian May
2004-08-26 13:34 ` timeouts Steve
2004-08-26 14:02 ` timeouts Georg Bauhaus
2004-08-26 23:03 ` SPARK Brian May
2004-08-27 10:11 ` SPARK Georg Bauhaus
2004-08-26 23:20 ` timeouts Brian May
2004-08-27 10:20 ` timeouts Georg Bauhaus
2004-08-26 12:38 ` timeouts Jano
2004-08-26 19:07 ` timeouts Randy Brukardt
2004-08-26 21:25 ` timeouts tmoran
2004-08-26 23:01 ` timeouts Brian May
2004-08-27 0:03 ` timeouts Björn Persson
2004-08-27 9:31 ` timeouts Jano
2004-08-26 22:59 ` timeouts Brian May
2004-08-27 9:58 ` timeouts Jano
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox