make Time into a float64 for JS version compat
move the mutex into an anonymous field
add a clock utility