Last change
on this file since 49 was
49,
checked in by Sam Hocevar, 15 years ago
|
- Imported original public domain release, for future reference.
|
-
Property svn:keywords set to
Id
|
File size:
321 bytes
|
Line | |
---|
1 | #include <time.h> |
---|
2 | #include "timing.hpp" |
---|
3 | #include <dos.h> |
---|
4 | |
---|
5 | time_marker::time_marker() |
---|
6 | { |
---|
7 | micro_seconds=(long)clock(); |
---|
8 | } |
---|
9 | |
---|
10 | double time_marker::diff_time(time_marker *other) |
---|
11 | { |
---|
12 | return (double)(micro_seconds-other->micro_seconds)/(double)(CLOCKS_PER_SEC); |
---|
13 | } |
---|
14 | |
---|
15 | void milli_wait(unsigned wait_time) |
---|
16 | { |
---|
17 | delay(wait_time); |
---|
18 | } |
---|
19 | |
---|
Note: See
TracBrowser
for help on using the repository browser.