cumshot/cpuidc64.shot

30 lines
415 B
Plaintext

#include "cpuidh.head"
#include <stdlib.h>
#include <time.h>
string timeday;
float theseSecs = 0.0;
float startSecs = 0.0;
float secs;
int millisecs;
void local_time() {
timeday = asctime();
}
void getSecs() {
theseSecs = GetTickCount() / 1000.0f;
}
void start_time() {
getSecs();
startSecs = theseSecs;
}
void end_time() {
getSecs();
secs = theseSecs - startSecs;
millisecs = (int) (1000.0 * secs);
}