/usr/share/doc/libqd-dev/examples/tictoc.h is in libqd-dev 2.3.11.dfsg-2.2+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | /*
* tests/timer.h
*
* This work was supported by the Director, Office of Science, Division
* of Mathematical, Information, and Computational Sciences of the
* U.S. Department of Energy under contract number DE-AC03-76SF00098.
*
* Copyright (c) 2000-2001
*
* Contains function used for timing.
*/
#ifndef TICTOC_H__
#define TICTOC_H__
#include "config.h"
#ifdef _WIN32
#include <windows.h>
typedef DWORD tictoc;
#else
#ifdef HAVE_CLOCK_GETTIME
#include <time.h>
typedef struct timespec tictoc;
#else
#ifdef HAVE_GETTIMEOFDAY
#include <sys/time.h>
typedef struct timeval tictoc;
#else
#include <ctime>
typedef time_t tictoc;
#endif
#endif
#endif
void tic(tictoc *tv); /* start timing. */
double toc(tictoc *tv); /* stop timing. */
#endif
|