Hi all, is there a way to typecast dur such that I could do something like this? now => float t; Or is there a work around? Thanks in advance. cheers, -jrmy
On Mon, Mar 10, 2008 at 3:39 PM, Jeremy Hunt
Hi all,
is there a way to typecast dur such that I could do something like this?
now => float t;
Or is there a work around? Thanks in advance.
But it's not clear from your example, do you want time in seconds, or ms? (Which is exactly why you can't do the above...) Try: now/1::second => float time_in_seconds; now/1::ms => float time_in_ms; Steve
much better thanks! On Mar 10, 2008, at 12:50 PM, Stephen Sinclair wrote:
On Mon, Mar 10, 2008 at 3:39 PM, Jeremy Hunt
wrote: Hi all,
is there a way to typecast dur such that I could do something like this?
now => float t;
Or is there a work around? Thanks in advance.
But it's not clear from your example, do you want time in seconds, or ms? (Which is exactly why you can't do the above...)
Try:
now/1::second => float time_in_seconds; now/1::ms => float time_in_ms;
Steve _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (3)
-
Jeremy Hunt
-
Jeremy Hunt
-
Stephen Sinclair