stmhal: Add time module with sleep function.