Changeset d3e3a71 in mainline for uspace/lib/c/generic/time.c


Ignore:
Timestamp:
2012-04-23T22:35:15Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3293a94
Parents:
56b308e
Message:

libc: move difftime() from libposix to libc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/time.c

    r56b308e rd3e3a71  
    876876}
    877877
     878/**
     879 * Calculate the difference between two times, in seconds.
     880 *
     881 * @param time1 First time.
     882 * @param time0 Second time.
     883 * @return Time in seconds.
     884 */
     885double difftime(time_t time1, time_t time0)
     886{
     887        return (double) (time1 - time0);
     888}
     889
    878890/** @}
    879891 */
Note: See TracChangeset for help on using the changeset viewer.