difftime(3)


NAME

   difftime - calculate time difference

SYNOPSIS

   #include <time.h>

   double difftime(time_t time1, time_t time0);

DESCRIPTION

   The  difftime()  function returns the number of seconds elapsed between
   time time1 and time time0, represented as a double.  Each of the  times
   is  specified  in calendar time, which means its value is a measurement
   (in seconds) relative to the Epoch, 1970-01-01 00:00:00 +0000 (UTC).

ATTRIBUTES

   For  an  explanation  of  the  terms  used   in   this   section,   see
   attributes(7).

   
   Interface   Attribute      Value   
   
   difftime()  Thread safety  MT-Safe 
   

CONFORMING TO

   POSIX.1-2001, POSIX.1-2008, C89, C99, SVr4, 4.3BSD.

NOTES

   On  a  POSIX  system,  time_t is an arithmetic type, and one could just
   define

          #define difftime(t1,t0) (double)(t1 - t0)

   when the possible overflow in the subtraction is not a concern.

SEE ALSO

   date(1), gettimeofday(2), time(2), ctime(3), gmtime(3), localtime(3)

COLOPHON

   This page is part of release 4.09 of the Linux  man-pages  project.   A
   description  of  the project, information about reporting bugs, and the
   latest    version    of    this    page,    can     be     found     at
   https://www.kernel.org/doc/man-pages/.


More Linux Commands

manpages/gjarsigner-4.6.1.html
gjarsigner-4.6(1) - Java ARchive (JAR) file signing and veri
When the first form is used, the tool signs the designated JAR file. The second form, on the other hand, is used to verify a previously signed JAR file. FILE is

manpages/getloadavg.3.html
getloadavg(3) - get system load averages - Linux man page...
The getloadavg() function returns the number of processes in the system run queue averaged over various periods of time. Up to nelem samples are retrieved and a

manpages/copywin.3ncurses.html
copywin(3ncurses) - overlay and manipulate overlapped curses
copywin.3ncurses - The overlay and overwrite routines overlay srcwin on top of dstwin. scrwin and dstwin are not required to be the same size; only text where t

manpages/gvfs-mount.1.html
gvfs-mount(1) Mounts the locations - Linux manual page......
gvfs-mount provides commandline access to various aspects of GIOs mounting functionality. Mounting refers to the traditional concept of arranging multiple file

manpages/dconf.7.html
dconf(7) A configuration systen (Misc - Linux man page).....
dconf is a simple key/value storage system that is heavily optimised for reading. This makes it an ideal system for storing user preferences (which are read 100

manpages/cpanp.1.html
cpanp(1) - The CPANPLUS launcher (Commands - Linux man page)
This script launches the CPANPLUS utility to perform various operations from the command line. If its invoked without arguments, an interactive shell is execute

manpages/config_list.8.html
config_list(8) - Configure a Mailman list from a text file d
This is a very powerful script which lets you view and modify a lists configuration variables from the command line. E.g. you can dump out all the list options

manpages/logb.3.html
logb(3) - get exponent of a floating-point value (Man Page)
These functions extract the exponent from the internal floating-point representation of x and return it as a floating-point value. The integer constant FLT_RADI

manpages/help2man.1.html
help2man(1) generate a simple manual page - Linux man page
help2man generates a man page out of --help and --version output. -n, --name=STRING description for the NAME paragraph -s, --section=SECTION section number for

manpages/CPAN.3pm.html
CPAN(3pm) - query, download and build perl modules from CPAN
The CPAN module automates or at least simplifies the make and install of perl modules and extensions. It includes some primitive searching capabilities and know

manpages/glMap1f.3gl.html
glMap1f(3gl) - define a one-dimensional evaluator (ManPage)
Evaluators provide a way to use polynomial or rational polynomial mapping to produce vertices, normals, texture coordinates, and colors. The values produced by

manpages/glBegin.3gl.html
glBegin(3gl) - delimit the vertices of a primitive or a grou
glBegin and glEnd delimit the vertices that define a primitive or a group of like primitives. glBegin accepts a single argument that specifies in which of ten w





We can't live, work or learn in freedom unless the software we use is free.