X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Ftime%2Fclock.c;fp=functions%2Ftime%2Fclock.c;h=b3fb840793fb030b0fb8f8f9300c0875c12db462;hp=0000000000000000000000000000000000000000;hb=5d2d7d278a2fabd52a252676c6e5b1bb9be630c7;hpb=82c36ba715d2c440f21c501661abfeae0f507fab diff --git a/functions/time/clock.c b/functions/time/clock.c new file mode 100644 index 0000000..b3fb840 --- /dev/null +++ b/functions/time/clock.c @@ -0,0 +1,28 @@ +/* clock( void ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#include + +#ifndef REGTEST + +clock_t clock( void ) +{ + /* TODO: Placeholder implementation (valid but useless) */ + return -1; +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + TESTCASE( NO_TESTDRIVER ); + return TEST_RESULTS; +} + +#endif