summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6cf8346)
Signed-off-by: Jean Privat <jean@pryen.org>
fun destroy `{
free( recv );
`}
fun destroy `{
free( recv );
`}
+
+ # Seconds in Float
+ # Loss of precision but great to print
+ fun to_f: Float do return sec.to_f + nanosec.to_f / 1000000000.0
+
+ redef fun to_s do return "{to_f}s"
end
# Keeps track of real time
end
# Keeps track of real time