Re: time() not returning Integer

new topic     » goto parent     » topic index » view thread      » older message » newer message

Derek Parnell wrote:
> Show us what you mean by giving examples that you actually used and their
> results.
> 
> -- 
> Derek Parnell
> Melbourne, Australia
> Skype name: derek.j.parnell
My code is below
include get.e
include misc.e

integer start, stop
procedure loop()
start = time()
-- Time to start some long loop
for i = 0 to 100000 do
puts(2, "At loop:")
? i
clear_screen()
end for
stop = time() - start
printf(2, "Total time Elapsed: %d", stop)
sleep(2)
end procedure
loop()

Complete Error Report:
C:\DOCUME~1\exec\Desktop\TIMEER~1.TXT:6 in procedure loop() 
type_check failure, start is 0.06 
    i = <no value>

... called from C:\DOCUME~1\exec\Desktop\TIMEER~1.TXT:17 


Global & Local Variables

 \EUPHORIA\include\get.e:
    input_file = <no value>
    input_string = <no value>
    string_next = <no value>
    ch = <no value>

 \EUPHORIA\include\misc.e:
    pretty_end_col = <no value>
    pretty_chars = <no value>
    pretty_start_col = <no value>
    pretty_level = <no value>
    pretty_file = <no value>
    pretty_ascii = <no value>
    pretty_indent = <no value>
    pretty_ascii_min = <no value>
    pretty_ascii_max = <no value>
    pretty_line_count = <no value>
    pretty_line_max = <no value>
    pretty_dots = <no value>
    pretty_fp_format = <no value>
    pretty_int_format = <no value>
    pretty_line = <no value>

 C:\DOCUME~1\exec\Desktop\TIMEER~1.TXT:
    start = 0.06
    stop = <no value>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu