mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 02:29:52 +00:00
simple test program for clock() function
git-svn-id: svn://svn.cc65.org/cc65/trunk@1104 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
d784b9551e
commit
046f196e84
27
testcode/lib/clock.c
Normal file
27
testcode/lib/clock.c
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* simple clock test
|
||||
*
|
||||
* 06-Nov-2001, Christian Groessler
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <conio.h>
|
||||
#include <time.h>
|
||||
|
||||
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 <return> to exit...");
|
||||
cgetc();
|
||||
#endif
|
||||
printf("\n");
|
||||
return(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user