Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F73374935
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
Sat, Jul 20, 23:06
Size
267 B
Mime Type
text/x-c++
Expires
Mon, Jul 22, 23:06 (1 d, 23 h)
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