Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F73415048
timer.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 21, 04:37
Size
267 B
Mime Type
text/x-c++
Expires
Tue, Jul 23, 04:37 (2 d)
Engine
blob
Format
Raw Data
Handle
19193816
Attached To
rLAMMPS lammps
timer.h
View Options
#ifndef TIMER_H
#define TIMER_H
#include "stdio.h"
#include "stdlib.h"
#include "time.h"
class Timer {
public:
Timer();
void start();
void stop();
void print();
double elapse();
private:
clock_t t1, t2;
double cpu_time_used;
int flag;
};
#endif
Event Timeline
Log In to Comment