Table of Contents

NAME

QccTime - timer routines

SYNOPSIS

#include "libQccPack.h"

int QccTimeTic();
int QccTimeToc(double *time);

DESCRIPTION

QccTimeTic() and QccTimeToc() implement a method of measuring execution time. QccTimeTic() starts the timer; QccTimeToc() returns the amount of time elapsed since the previous call to QccTimeTic(). The elapsed time is returned in time which represents the time in seconds as a floating-point value.

Each call to QccTimeToc() returns the elapsed time since the last call to QccTimeTic(). If QccTimeTic() has not been called previously, QccTimeToc() returns the time since the program started running.

QccTimeTic() and QccTimeToc() rely on gettimeofday(2) to return the current time.

RETURN VALUE

These routines return 0 on success and 1 on failure.

SEE ALSO

gettimeofday(2) , QccPack(3)

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads