|
TRF Language Model
|
clock - used to record the time More...
#include <wb-win.h>
Public Member Functions | |
| Clock (void) | |
| ~Clock (void) | |
| void | Clean () |
| clean the clock More... | |
| clock_t | Begin () |
| begin to record More... | |
| clock_t | End () |
| record end and return the time More... | |
| clock_t | Get () |
| get the time, but don't stop recording More... | |
| void | Sleep (clock_t n) |
| wait for sveral millissecond More... | |
Static Public Member Functions | |
| static double | ToSecond (clock_t t) |
| transform the clock_t to second More... | |
Protected Attributes | |
| clock_t | m_nBeginTime |
| clock_t | m_nEndTime |
| bool | m_bWork |
| wb::Clock::Clock | ( | void | ) |
Definition at line 118 of file wb-win.cpp.
| wb::Clock::~Clock | ( | void | ) |
Definition at line 125 of file wb-win.cpp.
| clock_t wb::Clock::Begin | ( | ) |
begin to record
Definition at line 138 of file wb-win.cpp.
| void wb::Clock::Clean | ( | ) |
clean the clock
Definition at line 132 of file wb-win.cpp.
| clock_t wb::Clock::End | ( | ) |
record end and return the time
Definition at line 143 of file wb-win.cpp.
| clock_t wb::Clock::Get | ( | ) |
get the time, but don't stop recording
Definition at line 151 of file wb-win.cpp.
| void wb::Clock::Sleep | ( | clock_t | n | ) |
wait for sveral millissecond
Definition at line 155 of file wb-win.cpp.
|
inlinestatic |