Return to utime.c CVS log | Up to [local] / OpenXM / src / Ti |
1.1 maekawa 1: /* 2: ** copyright (c) 1995 Birk Huber 3: */ 4: 5: /* get user time 6: * man 2 getrusage 7: */ 8: 9: #include <math.h> 10: #include <stdio.h> 11: #include <time.h> 12: #include "utime.h" 13: 14: 15: 16: int set_mark(){ 17: return clock(); 18: } 19: 20: int read_mark(int timeset){ 21: return (clock()-timeset) / CLOCKS_PER_SEC; 22: } 23: 24: 25: 26: 27: