Open heuermh opened 10 years ago
Even after time has advanced now returns 0.0 when called within the tick(float) method inside a class which extends Chugen.
now
0.0
tick(float)
Chugen
For example:
class WhatTimeIsIt extends Chugen { fun float tick(float in) { <<<"what time is it?", now>>>; } } WhatTimeIsIt what => blackhole; <<<"before", now>>>; 1::samp => now; <<<"after", now>>>; 1::samp => now; <<<"done">>>;
displays
$ chuck whatTimeIsIt.ck before 0.000000 what time is it? 0.000000 after 1.000000 what time is it? 0.000000 "done" : (string)
Even after time has advanced
now
returns0.0
when called within thetick(float)
method inside a class which extendsChugen
.For example:
displays