You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: CEDS64MaxTime.m
    path of file: ./repos/brainstorm3/external/CEDS64ML
    
    the code of the file until where you have to start completion: %{
    Copyright (C) Cambridge Electronic Design Limited 2014
    Author: James Thompson
    Web: www.ced.co.uk email: james@ced.co.uk, softhelp@ced.co.uk

    This file is part of CED
    
function [ i64MaxTime ] = CEDS64MaxTime( fhand )
%CEDS64MAXTIME Returns the maximum time in ticks of all channels for a SON file
%   [ i64MaxTime ] = CEDS64MaxTime( fhand )
%   Inputs
%   fhand - Integer file handle
%   Outputs
%   i64MaxTime - the maximum time in ticks of all channels in this file, 
%   otherwise a negative error code.

if (nargin ~= 1)
    i64MaxTime = -22;
    return;
end