Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90413840
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
Fri, Nov 1, 11:23
Size
267 B
Mime Type
text/x-c++
Expires
Sun, Nov 3, 11:23 (2 d)
Engine
blob
Format
Raw Data
Handle
22032376
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