prtime.c

来自「主要进行大规模的电路综合」· C语言 代码 · 共 32 行

C
32
字号
/* * Revision Control Information * * /projects/hsis/CVS/utilities/util/prtime.c,v * rajeev * 1.3 * 1995/08/08 22:41:26 * *//* LINTLIBRARY */#include <stdio.h>#include "util.h"/* *  util_print_time -- massage a long which represents a time interval in *  milliseconds, into a string suitable for output  * *  Hack for IBM/PC -- avoids using floating point */char *util_print_time(t)long t;{    static char s[40];    (void) sprintf(s, "%ld.%02ld sec", t/1000, (t%1000)/10);    return s;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?