Найдено документов: 687 (1 сайтов) ---- Время поиска: 0.84сек. |
Показаны документы, содержащие фрагменты текста из документа
http://mavr.sao.ru/hq/sts/linux/book/xbook_marshall/X_book_caller.html.
http://mavr.sao.ru/hq/sts/linux/book/xbook_marshall/X_book_caller.html.
1. Time Functions
... Basic time functions . ... Example 2: Set a random number seed . ... Uses of time functions include: . ... time_t time(time_t *tloc) -- returns the time since 00:00:00 GMT, Jan. 1, 1970 , measured in seconds. ... timer.c */ #include <stdio.h> #include <sys/types.h> #include <time.h> main() { int i; time_t t1,t2; (void) time(&t1); for (i=1;i<=300;++i) printf(``%d %d %d n'',i, i*i, i*i*i); (void) time(&t2); printf(`` n Time to do 300 squares and cubes= %d seconds n'', (int) t2-t1); } . ...
[
Сохраненная копия
]
Ссылки http://mavr.sao.ru/hq/sts/linux/book/c_marshall/node21.html -- 8.0 Кб -- 28.12.2007
Похожие документы
Похожие документы
Еще в разделе:
(Показать все результаты (>687) - jet.sao.ru/ )
Астронет | Научная сеть | ГАИШ МГУ | Поиск по МГУ | О проекте | Авторам
Комментарии, вопросы? Пишите: info@astronet.ru или сюда