Image Interpolation with Geometric Contour Stencils
|
Memory management, portable types, math constants, and timing. More...
Go to the source code of this file.
Functions | |
unsigned long | Clock () |
void * | MallocWithErrorMessage (size_t Size) |
malloc with an error message on failure. More... | |
void * | ReallocWithErrorMessage (void *Ptr, size_t Size) |
realloc with an error message and free on failure. More... | |
void | ErrorMessage (const char *Format,...) |
Redefine this function to customize error messages. More... | |
Memory management, portable types, math constants, and timing.
This file implements a function Clock, a timer with millisecond precision. In order to obtain timing at high resolution, platform- specific functions are needed:
Otherwise as a fallback, time.h time is used, and in this case Clock has only second accuracy. This file attempts to detect whether the platform is POSIX or Windows and defines Clock accordingly. A particular implementation can be forced by defining USE_GETSYSTEMTIME, USE_GETTIMEOFDAY, or USE_TIME.
Copyright (c) 2010-2011, Pascal Getreuer All rights reserved.
This program is free software: you can use, modify and/or redistribute it under the terms of the simplified BSD License. You should have received a copy of this license along this program. If not, see http://www.opensource.org/licenses/bsd-license.html.
Definition in file basic.c.
void ErrorMessage | ( | const char * | Format, |
... | |||
) |
void* MallocWithErrorMessage | ( | size_t | Size | ) |