tagged release 0.7.1
[parrot.git] / config / gen / platform / ansi / time.c
blobdda136fa4965cbe858157d37486fa7ded315f332
1 /*
2 * $Id$
3 * Copyright (C) 2007, The Perl Foundation.
4 */
6 /*
8 =head1 NAME
10 config/gen/platform/ansi/time.c
12 =head1 DESCRIPTION
14 RT#48264
16 =head2 Functions
18 =over 4
20 =cut
24 #include <time.h>
28 =item C<INTVAL Parrot_intval_time(void)>
30 RT#48260: Not yet documented!!!
32 =cut
36 INTVAL
37 Parrot_intval_time(void)
39 return time(NULL);
45 =item C<FLOATVAL Parrot_floatval_time(void)>
47 RT#48260: Not yet documented!!!
49 =cut
53 FLOATVAL
54 Parrot_floatval_time(void)
56 /* unable to provide this level of precision under ANSI-C, so just fall
57 back to intval time for this. */
58 Parrot_warn(NULL, PARROT_WARNINGS_PLATFORM_FLAG, "Parrot_floatval_time not accurate");
59 return (FLOATVAL)Parrot_intval_time();
65 =item C<void Parrot_sleep(unsigned int seconds)>
67 RT#48260: Not yet documented!!!
69 =cut
73 void
74 Parrot_sleep(unsigned int seconds)
76 Parrot_warn(NULL, PARROT_WARNINGS_PLATFORM_FLAG, "Parrot_sleep not implemented");
77 return;
82 =back
84 =cut
89 * Local variables:
90 * c-file-style: "parrot"
91 * End:
92 * vim: expandtab shiftwidth=4: