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: moxunit_fieldtrip_util_parse_walltime.m
    path of file: ./repos/fieldtrip/contrib/MOxUnit_fieldtrip
    
    the code of the file until where you have to start completion: function value=moxunit_fieldtrip_util_parse_walltime(line)
% parse WALLTIME property in FieldTrip test
%
% value=moxunit_fieldtrip_util_parse_walltime(line)
%
% Input:
%   line                string which may represent time; supported are:
%                       - 9             numeric input
%                       - '9'           char input
%                       - '01:12:13     char input; hours, minutes, seconds
%
% Output:
%   value               time in seconds, or the emty array [] if no value
%                       is reprsented in the input
%
% #   For MOxUnit_fieldtrip's copyright information and license terms,   #
% #   see the COPYING file distributed with MOxUnit_fieldtrip.           #

    
function value=moxunit_fieldtrip_util_parse_walltime(line)
% parse WALLTIME property in FieldTrip test
%
% value=moxunit_fieldtrip_util_parse_walltime(line)
%
% Input:
%   line                string which may represent time; supported are:
%                       - 9             numeric input
%                       - '9'           char input
%                       - '01:12:13     char input; hours, minutes, seconds
%
% Output:
%   value               time in seconds, or the emty array [] if no value
%                       is reprsented in the input
%
% #   For MOxUnit_fieldtrip's copyright information and license terms,   #
% #   see the COPYING file distributed with MOxUnit_fieldtrip.           #

    if ~ischar(line)
        error('input must be numeric');
    end