# HG changeset patch # User samer # Date 1330469444 0 # Node ID 8f2689f2989d214c11275793360c8ff3b80e8a31 # Parent 821f56d94b1847a77b4f395ac2031937c261d92a Added documentation. diff -r 821f56d94b18 -r 8f2689f2989d prolog/plosc.pl --- a/prolog/plosc.pl Fri Feb 24 18:09:47 2012 +0000 +++ b/prolog/plosc.pl Tue Feb 28 22:50:44 2012 +0000 @@ -94,7 +94,11 @@ % Gets the current OSC time in seconds and 1/2^64 ths of second. osc_now(osc_ts(Secs,Fracs)) :- osc_now(Secs,Fracs). - +%% osc_time_ts(+Time:float,-TS:osc_timestamp) is det. +%% osc_time_ts(-Time:float,+TS:osc_timestamp) is det. +% +% Convert between floating point time as returned by get_time/1 and OSC +% timestamp structure as returned by osc_now/1. osc_time_ts(Time,osc_ts(Secs,Fracs)) :- ( var(Time) -> time_from_ts(Time,Secs,Fracs) ; time_to_ts(Time,Secs,Fracs)).