Dive Computer Function Definition