Time domain analysis of fiber grating semiconductor laser operation in active mode locking regime