Bug in (timer 'symbol)
Posted: Fri Aug 12, 2005 8:16 pm
Hi,
According to the manual, (timer 'symbol) should return the elapsed time of the timer with newLisp 8.6.1, which I am currently using.
So the result of this program should be a climbing series of values. This is OK in Windows. In Linux however, this is the result:
According to the manual, (timer 'symbol) should return the elapsed time of the timer with newLisp 8.6.1, which I am currently using.
Code: Select all
(define (callback)
(println "Callback...")(set 'done true))
(timer 'callback 5.0)
(while (not done)
(println (timer 'callback))
(sleep 100))
Peterpeter@Solarstriker:~/programming/newlisp$ ./bla.lsp
0
1.89
1.78
1.67
1.56
1.45
1.34
1.23
1.12
1.01
2.9
2.79
2.68
2.57
2.46
2.35
2.24
2.13
2.02
3.91
3.8
3.69
3.58
3.47
3.36
3.25
3.14
3.03
4.92
4.81
4.7
4.59
4.48
4.37
4.26
4.15
4.04
5.93
5.82
5.71
5.6
5.49
5.38
5.27
5.16
5.05
Callback...