Increased precision in API: using doubles
Changes for higher time precision