diff --git a/testcode/lib/clock.c b/testcode/lib/clock.c new file mode 100644 index 000000000..7991058cd --- /dev/null +++ b/testcode/lib/clock.c @@ -0,0 +1,27 @@ +/* + * simple clock test + * + * 06-Nov-2001, Christian Groessler + */ + +#include +#include +#include + +int main(void) +{ + printf("\ncc65 time routines test program\n"); + printf("-------------------------------\n"); + + printf("clocks per second: %d\n", CLOCKS_PER_SEC); + printf("current clock: %ld\n", clock()); + +#ifdef __ATARI__ + /* Atari DOS 2.x clears the screen after program termination, so wait... */ + printf("hit to exit..."); + cgetc(); +#endif + printf("\n"); + return(0); +} +