LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

difftime

difftime

double difftime (time_t time1, time_t time2);

Purpose

Computes the difference between two calendar times, such as would be returned by time or mktime. The resulting difference (time1 - time2) is returned in seconds, expressed as a double.

Parameters

Input
Name Type Description
time1 time_t Contains the calendar time from which time2 is subtracted. A calendar time can be obtained by calling time or mktime.
time2 time_t Contains the calendar time value that is subtracted from time1. A calendar time can be obtained by calling time or mktime.

Return Value

Name Type Description
timeDifference double Contains the resulting difference (time1 - time2) in seconds.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Was this information helpful?

Previous

ctime

Next

div

Previous

ctime

Next

div