home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
361b.lha
/
CManual_v1.0_disk2
/
Miscellaneous
/
Example5.c.pp
/
Example5.c
Wrap
C/C++ Source or Header
|
1990-04-07
|
675b
|
37 lines
/* Example5 */
/* This example prints out the current time. */
#include <intuition/intuition.h>
struct IntuitionBase *IntuitionBase;
main()
{
ULONG seconds, micros;
/* Open the Intuition Library: */
IntuitionBase = (struct IntuitionBase *)
OpenLibrary( "intuition.library", 0 );
if( IntuitionBase == NULL )
exit(); /* Could NOT open the Intuition Library! */
/* Get the current time: */
CurrentTime( &seconds, µs );
/* Print out the current time: */
printf( "Seconds: %d\n", seconds );
printf( "Micros: %d\n", micros );
/* Close the Intuition Library: */
CloseLibrary( IntuitionBase );
}